mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
14 lines
432 B
HTML
14 lines
432 B
HTML
<!DOCTYPE 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>
|