ladybird/Tests/LibWeb/Text/input/DOM/domparser-parsefromstring-xml-empty-pubid.html
2024-10-23 21:08:56 +02:00

9 lines
323 B
HTML

<script src="../include.js"></script>
<script>
test(() => {
var doc = new DOMParser().parseFromString('<!DOCTYPE html PUBLIC "" "this is the system id"><html><div id="test"/></html>', 'application/xhtml+xml');
if (doc.getElementById('test')) {
println('PASSED');
}
});
</script>