mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibWeb: Fix boolean logic mistake in XMLSerializer for empty public ID
Fixes 5 subtests on http://wpt.live/domparsing/xml-serialization.xhtml
This commit is contained in:
parent
d81f31c699
commit
9ce139a3f0
Notes:
github-actions[bot]
2024-10-21 08:53:58 +00:00
Author: https://github.com/vaguely-tagged 🔰 Commit: https://github.com/LadybirdBrowser/ladybird/commit/9ce139a3f08 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1662 Reviewed-by: https://github.com/Hendiadyoin1
1 changed files with 1 additions and 1 deletions
|
@ -839,7 +839,7 @@ static WebIDL::ExceptionOr<String> serialize_document_type(DOM::DocumentType con
|
||||||
}
|
}
|
||||||
|
|
||||||
// 8. If the node's systemId is not the empty string and the node's publicId is set to the empty string, then append the following, in the order listed, to markup:
|
// 8. If the node's systemId is not the empty string and the node's publicId is set to the empty string, then append the following, in the order listed, to markup:
|
||||||
if (!document_type.system_id().is_empty() && !document_type.public_id().is_empty()) {
|
if (!document_type.system_id().is_empty() && document_type.public_id().is_empty()) {
|
||||||
// 1. " " (U+0020 SPACE);
|
// 1. " " (U+0020 SPACE);
|
||||||
// 2. The string "SYSTEM".
|
// 2. The string "SYSTEM".
|
||||||
markup.append(" SYSTEM"sv);
|
markup.append(" SYSTEM"sv);
|
||||||
|
|
Loading…
Reference in a new issue