LibXML: Allow empty pubid when parsing document type

This commit is contained in:
Florian Cramer 2024-10-21 20:55:42 +02:00 committed by Ali Mohammad Pur
commit 1775021d71
Notes: github-actions[bot] 2024-10-23 19:31:45 +00:00
3 changed files with 12 additions and 1 deletions

View file

@ -0,0 +1,9 @@
<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>