Files
serenity/Tests/LibWeb/Text/input/DOM/CDATASection-cloneNode.html
Tim Ledbetter 6a6c0ae791 LibWeb: Don't crash when cloning a CDATASection node
(cherry picked from commit 72ed62a560c654370e6a3583bc8bd078732f44db)
2024-07-28 07:32:31 -04:00

10 lines
345 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 CDATASection node data: ${clone.data}`);
});
</script>