MCPcopy
hub / github.com/inikulin/parse5 / createElement

Method createElement

packages/parse5/lib/tree-adapters/interface.ts:83–83  ·  view source on GitHub ↗

* Creates an element node. * * @param tagName - Tag name of the element. * @param namespaceURI - Namespace of the element. * @param attrs - Attribute name-value pair array. Foreign attributes may contain `namespace` and `prefix` fields as well.

(tagName: string, namespaceURI: NS, attrs: Attribute[])

Source from the content-addressed store, hash-verified

81 * @param attrs - Attribute name-value pair array. Foreign attributes may contain `namespace` and `prefix` fields as well.
82 */
83 createElement(tagName: string, namespaceURI: NS, attrs: Attribute[]): T['element'];
84
85 /**
86 * Removes a node from its parent.

Callers 12

getFragmentParserMethod · 0.80
_appendElementMethod · 0.80
_insertElementMethod · 0.80
_insertFakeElementMethod · 0.80
_insertTemplateMethod · 0.80
createElementFunction · 0.80
index.test.tsFile · 0.80
createFragmentContextFunction · 0.80

Calls

no outgoing calls

Tested by 1

createElementFunction · 0.64