Navigation Menu

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 selector-pseudo-element-{allowed,disallowed}-list end positions and message #6270

Merged

Conversation

ybiquitous
Copy link
Member

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

Part of #5694

Is there anything in the PR that needs further explanation?

In addition to end positions, this PR fixes the messages to include :: characters for clarity. E.g.

- Unexpected pseudo-element "MY-OTHER-pseudo-element"
+ Unexpected pseudo-element "::MY-OTHER-pseudo-element"

@@ -47,7 +47,7 @@ const rule = (primary) => {
const value = pseudoNode.value;

// Ignore pseudo-classes
if (value[1] !== ':') {
if (value.charAt(1) !== ':') {
Copy link
Member Author

Choose a reason for hiding this comment

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

[note] I think the charAt() method is more readable since we can easily see that its method receiver is a string.

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.

LGTM

@ybiquitous ybiquitous merged commit cd68048 into main Aug 17, 2022
@ybiquitous ybiquitous deleted the fix-selector-pseudo-element-list-end-positions-and-message branch August 17, 2022 00:16
@ybiquitous
Copy link
Member Author

Changelog entries added:

  • Fixed: selector-pseudo-element-allowed-list end positions and message (#6270).
  • Fixed: selector-pseudo-element-disallowed-list end positions and message (#6270).

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.

None yet

2 participants