Closed
Description
import { DOMParser, Element, HTMLDocument, Node } from "../../deno-dom-wasm.ts";
import {
assert,
assertEquals,
} from "https://deno.land/std@0.85.0/testing/asserts.ts";
Deno.test("cloneNode", () => {
const doc = new DOMParser().parseFromString(
`
a
<p>b</p>
<ul><li>c</li></ul>
<!-- d -->
<a id="e">e</a>
`,
"text/html"
)!;
const doc2 = doc.cloneNode(true) as HTMLDocument;
assert(doc2.body !== null); // This is supposed to be true but gets false really
});
Metadata
Metadata
Assignees
Labels
No labels