mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-15 15:42:52 +00:00
Co-authored-by: Rayyan Hamid <rayyanbwp@gmail.com> Co-authored-by: Christian Ewing <u1273549@utah.edu> Co-authored-by: Austin Fashimpaur <austin.fashimpaur@gmail.com>
12 lines
416 B
HTML
12 lines
416 B
HTML
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
var xmlDocument = document.implementation.createDocument(null, "root", null);
|
|
var divElement = xmlDocument.createElementNS("http://www.w3.org/1999/xhtml", "div");
|
|
divElement.setAttribute("FoO", "bar");
|
|
|
|
xmlDocument.documentElement.appendChild(divElement);
|
|
|
|
println(new XMLSerializer().serializeToString(xmlDocument));
|
|
});
|
|
</script>
|