Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML: attribute selectors with case-insensitive values #43709

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

annevk
Copy link
Member

@annevk annevk commented Dec 18, 2023

Given https://bugs.webkit.org/show_bug.cgi?id=265719 this needs some coverage.

Copy link
Contributor

@Ms2ger Ms2ger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems correct. (I assume you copied the list correctly.)

It might be good to also cover the following:

  • MathML elements
  • SVG elements
  • attributes in a namespace (though I'm not quite sure what the spec expects there)

@Ms2ger
Copy link
Contributor

Ms2ger commented Dec 18, 2023

Oh, and:

  • that other attributes are case-sensitive

@Ms2ger
Copy link
Contributor

Ms2ger commented Dec 18, 2023

Feel free to either add those to this PR or file a followup issue

@annevk annevk merged commit 05633f0 into master Dec 18, 2023
20 checks passed
@annevk annevk deleted the annevk/case-insensitive-attribute-values branch December 18, 2023 15:56
webkit-commit-queue pushed a commit to annevk/WebKit that referenced this pull request Dec 18, 2023
https://bugs.webkit.org/show_bug.cgi?id=265719
rdar://119432066

Reviewed by Tim Nguyen.

Add the missing attribute. New tests are upstreamed here:
web-platform-tests/wpt#43709

* LayoutTests/imported/w3c/web-platform-tests/html/semantics/selectors/case-sensitivity/values.window-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/selectors/case-sensitivity/values.window.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/selectors/case-sensitivity/values.window.js: Added.
(forEach.attributeName.forEach):
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/selectors/case-sensitivity/w3c-import.log: Added.
* Source/WebCore/html/HTMLDocument.cpp:
(WebCore::HTMLDocument::isCaseSensitiveAttribute):

Canonical link: https://commits.webkit.org/272219@main
Nevalynn88

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants