MCPcopy
hub / github.com/jsdom/jsdom / appendChild

Function appendChild

lib/jsdom/browser/parser/xml.js:71–79  ·  view source on GitHub ↗
(child)

Source from the content-addressed store, hash-verified

69 }
70
71 function appendChild(child) {
72 const parentElement = openStack[openStack.length - 1];
73
74 if (isHTMLTemplateElement(parentElement)) {
75 parentElement._templateContents._insert(child, null);
76 } else {
77 parentElement._insert(child, null);
78 }
79 }
80
81 parser.on("text", saxesOptions.fragment ?
82 // In a fragment, all text events produced by saxes must result in a text

Callers 1

createParserFunction · 0.85

Calls 2

isHTMLTemplateElementFunction · 0.85
_insertMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…