mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01: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
|
|
@ -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:
|
||||
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);
|
||||
// 2. The string "SYSTEM".
|
||||
markup.append(" SYSTEM"sv);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user