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

DOM selector tests wrongly assume '>>' is invalid in selectors #3802

Merged

Conversation

cdumez
Copy link
Contributor

@cdumez cdumez commented Sep 22, 2016

DOM selector tests wrongly assume '>>' is invalid in selectors. However,
as per Selectors Level 4, this is a valid descendant combinator,
identical in behavior to ' ' combinator:

DOM selector tests wrongly assume '>>' is invalid in selectors. However,
as per Selectors Level 4, this is a valid descendant combinator,
identical in behavior to ' ' combinator:
- https://drafts.csswg.org/selectors-4/#descendant-combinators
@wpt-pr-bot
Copy link
Collaborator

Reviewers for this pull request are: @Ms2ger, @ayg, @jdm, @plehegar, @zcorpan, and @zqzhang.

@cdumez
Copy link
Contributor Author

cdumez commented Sep 22, 2016

@rniwa

@Ms2ger
Copy link
Contributor

Ms2ger commented Sep 23, 2016

Is there consensus to add this seemingly redundant feature?

@cdumez
Copy link
Contributor Author

cdumez commented Sep 23, 2016

@Ms2ger I am not very familiar with the Selector specification. What I do know is that the '>>' is part of the specification at the moment and has been shipping in Safari for a while.

I think at the very least, we should drop the test that checks that we throw as this hurts browsers like Safari that implement the latest specification. I thought of doing this at first but reviewers usually do not like reducing test coverage.

Copy link
Member

@zcorpan zcorpan left a comment

Choose a reason for hiding this comment

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

LGTM. Please discuss the be or not to be about the >> combinator with the csswg.

@zcorpan zcorpan merged commit d6f8c0c into web-platform-tests:master Sep 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants