mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
LibXML: Allow empty pubid when parsing document type
This commit is contained in:
parent
89192ecc46
commit
1775021d71
Notes:
github-actions[bot]
2024-10-23 19:31:45 +00:00
Author: https://github.com/f-cramer
Commit: 1775021d71
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1897
3 changed files with 12 additions and 1 deletions
|
@ -0,0 +1 @@
|
|||
PASSED
|
|
@ -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>
|
|
@ -1544,7 +1544,8 @@ ErrorOr<StringView, ParseError> Parser::parse_public_id_literal()
|
|||
[q = quote[0]](auto x) {
|
||||
return (q == '\'' ? x != '\'' : true) && s_public_id_characters.contains(x);
|
||||
},
|
||||
"a PubidChar"sv));
|
||||
"a PubidChar"sv,
|
||||
true));
|
||||
TRY(expect(quote));
|
||||
|
||||
rollback.disarm();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue