mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-15 23:52:57 +00:00
We were cloning these as plain Text nodes, but the clone must also be a CDATASection node.
9 lines
350 B
HTML
9 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>
|