MCPcopy Create free account
hub / github.com/cure53/DOMPurify / voidWithChild

Function voidWithChild

test/test-suite.js:1379–1383  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1377 (assert) => {
1378 const root = document.createElement('div');
1379 const voidWithChild = () => {
1380 const col = document.createElement('col');
1381 col.appendChild(document.createTextNode('x'));
1382 return col;
1383 };
1384
1385 root.appendChild(document.createTextNode('{'));
1386 root.appendChild(voidWithChild());

Callers 1

test-suite.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected