LibWeb/CSS: Serialize * namespace in attribute selectors

Gets us 13 WPT subtest passes.
This commit is contained in:
Sam Atkins 2025-05-15 14:59:26 +01:00
commit 3914bf05fb
Notes: github-actions[bot] 2025-05-16 15:43:21 +00:00
3 changed files with 18 additions and 17 deletions

View file

@ -348,6 +348,8 @@ String Selector::SimpleSelector::serialize() const
if (attribute.qualified_name.namespace_type == QualifiedName::NamespaceType::Named) {
serialize_an_identifier(s, attribute.qualified_name.namespace_);
s.append('|');
} else if (attribute.qualified_name.namespace_type == QualifiedName::NamespaceType::Any) {
s.append("*|"sv);
}
// 3. Append the serialization of the attribute name as an identifier to s.