Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Correct serialization of Selectors
https://bugs.webkit.org/show_bug.cgi?id=184604 rdar://97092572 Reviewed by Antti Koivisto and Tim Nguyen. We did not use serializeIdentifier for qualified name prefixes and local names. E.g., x:x was not serialized as x\:x. This was previously attempted, but it would do the wrong thing for * and thus backed out. So now we do not escape when prefix or local name is *. The only edge case remaining is whether the * and \* inputs should mean the same thing. w3c/csswg-drafts#8911 will eventually address this. Meanwhile this seems like a solid improvement. Also synchronize web-platform-tests/css/cssom up to upstream commit 57c5006 for real this time. 264934@main missed a couple changes. * LayoutTests/imported/w3c/web-platform-tests/css/cssom/cssimportrule-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/cssom/cssimportrule.html: * LayoutTests/imported/w3c/web-platform-tests/css/cssom/selectorSerialize-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/cssom/selectorSerialize.html: * LayoutTests/imported/w3c/web-platform-tests/css/cssom/xml-stylesheet-pi-in-doctype.xhtml: * Source/WebCore/css/CSSSelector.cpp: (WebCore::serializeIdentifierOrStar): (WebCore::CSSSelector::selectorText const): Canonical link: https://commits.webkit.org/264980@main
- Loading branch information
Showing
6 changed files
with
68 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters