mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:27:35 +00:00
LibWeb: Create XML Documents in DOMParser.parseFromString
This commit is contained in:
parent
cd156bad6b
commit
a545935997
3 changed files with 11 additions and 1 deletions
8
Tests/LibWeb/Text/input/DOM/DOMParser-xml-document.html
Normal file
8
Tests/LibWeb/Text/input/DOM/DOMParser-xml-document.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
const parser = new DOMParser();
|
||||
const xmlDoc = parser.parseFromString('<svg></svg>', "text/xml");
|
||||
println(xmlDoc.constructor.name);
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue