mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 14:48:15 +00:00
We were cloning these as plain Text nodes, but the clone must also be a CDATASection node.
10 lines
350 B
HTML
10 lines
350 B
HTML
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
const xmlDocument = new DOMParser().parseFromString(`<xml></xml>`, "application/xml");
|
|
const cdata = xmlDocument.createCDATASection("PASS");
|
|
const clone = cdata.cloneNode();
|
|
println(`Cloned ${clone.nodeName} node data: ${clone.data}`);
|
|
});
|
|
</script>
|