MCPcopy
hub / github.com/jsdom/jsdom / _createAttribute

Method _createAttribute

lib/jsdom/living/nodes/Document-impl.js:836–849  ·  view source on GitHub ↗
({
    localName,
    value,
    namespace,
    namespacePrefix
  })

Source from the content-addressed store, hash-verified

834 // Using this helper function rather than directly calling generatedAttr.createImpl may be preferred in some files,
835 // to avoid introducing a potentially cyclic dependency on generated/Attr.js.
836 _createAttribute({
837 localName,
838 value,
839 namespace,
840 namespacePrefix
841 }) {
842 return generatedAttr.createImpl(this._globalObject, [], {
843 localName,
844 value,
845 namespace,
846 namespacePrefix,
847 ownerDocument: this
848 });
849 }
850
851 createTreeWalker(root, whatToShow, filter) {
852 return TreeWalker.createImpl(this._globalObject, [], { root, whatToShow, filter });

Callers 6

createAttributeMethod · 0.95
createAttributeNSMethod · 0.95
node.jsFile · 0.80
attributes.jsFile · 0.80
setAttributeMethod · 0.80
toggleAttributeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected