ladybird/Tests/LibWeb/Text/input/DOM/domparser-parsefromstring-xml-empty-pubid.html
2025-03-20 11:50:49 +01:00

10 lines
339 B
HTML

<!DOCTYPE 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>