mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Create XML Documents in DOMParser.parseFromString
This commit is contained in:
committed by
Andreas Kling
parent
cd156bad6b
commit
a545935997
Notes:
sideshowbarker
2024-07-17 18:13:59 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/a545935997 Pull-request: https://github.com/SerenityOS/serenity/pull/22567 Reviewed-by: https://github.com/awesomekling
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>
|
||||
Reference in New Issue
Block a user