MCPcopy
hub / github.com/jsdom/jsdom / getAttribute

Method getAttribute

lib/jsdom/living/nodes/Element-impl.js:195–201  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

193 }
194
195 getAttribute(name) {
196 const attr = attributes.getAttributeByName(this, name);
197 if (!attr) {
198 return null;
199 }
200 return attr._value;
201 }
202
203 getAttributeNS(namespace, localName) {
204 const attr = attributes.getAttributeByNameNS(this, namespace, localName);

Callers 15

xml.jsFile · 0.80
parsing.jsFile · 0.80
misc2.jsFile · 0.80
testHTMLDocumentFunction · 0.80
testDocumentWithSVGFunction · 0.80
SizzleFunction · 0.80
jquery-1.11.0.jsFile · 0.80
dataAttrFunction · 0.80
kFunction · 0.80
style.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected