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

Fix false positives for :autofill in selector-pseudo-class-no-unknown #5171

Merged
merged 1 commit into from Mar 3, 2021

Conversation

Mouvedia
Copy link
Contributor

@Mouvedia Mouvedia commented Feb 25, 2021

Which issue, if any, is this issue related to?

Closes #5168

Is there anything in the PR that needs further explanation?

I consider removing :contains() a breaking change hence it will have to wait for the next major.
FYI it was dropped "due to a lack of implementations".
e.g. Selenium used Sizzle which supported :contains().

:val() was erroneously added because it was listed in one of the specification's examples.
ref: https://github.com/lloyd/JSONSelect/blob/master/JSONSelect.md#language-overview

- document :contains() before its removal
- remove JSONSelect val pseudo-class (guilty commit 8c808d0)
@jeddy3 jeddy3 changed the title Add autofill pseudo-class Fix false positives for :autofill in selector-pseudo-class-no-unknown Feb 26, 2021
Copy link
Member

@jeddy3 jeddy3 left a comment

Choose a reason for hiding this comment

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

Thank you! LGTM.

Copy link
Member

@mattxwang mattxwang left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@m-allanson m-allanson merged commit 55c1afa into stylelint:master Mar 3, 2021
@m-allanson
Copy link
Member

m-allanson commented Mar 3, 2021

Thank you @Mouvedia 🎉

Changelog updated with:

- Fixed: `selector-pseudo-class-no-unknown` false positives for `:autofill` ([#5171](https://github.com/stylelint/stylelint/pull/5171)).

@Mouvedia
Copy link
Contributor Author

Mouvedia commented Mar 3, 2021

Changelog updated with:

- Fixed: `selector-pseudo-class-no-unknown` false positives for `:autofill` ([#5171](https://github.com/stylelint/stylelint/pull/5171)).

@m-allanson maybe add

- Removed: JSONSelect `:val()`

@Mouvedia Mouvedia deleted the mouvedia-autofill branch March 3, 2021 22:24
This was referenced Mar 7, 2021
This was referenced Mar 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Fix false positives for :autofill in selector-pseudo-class-no-unknown
4 participants