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: the CSS ~= operator handles non-space whitespace #2136

Merged
merged 1 commit into from
Dec 18, 2020

Conversation

flavorjones
Copy link
Member

What problem is this PR intended to solve?

Related to #854, which fixed this problem for CSS class selectors.

The CSS ~= operator should treat the class attribute as a set of whitespace-delimited class names. However, the current implementation only works for spaces (and not tabs, newlines, or carriage returns).

Have you included adequate test coverage?

Yes, I've added tests that fail without the XPathVisitor change but pass with it.

Does this change affect the behavior of either the C or the Java implementations?

No, this change is entirely within rubyspace.

@flavorjones flavorjones added this to the v1.11.0 milestone Dec 18, 2020
@codeclimate
Copy link

codeclimate bot commented Dec 18, 2020

Code Climate has analyzed commit e45dedd and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (80% is the threshold).

This pull request will bring the total coverage in the repository to 94.2% (0.0% change).

View more on Code Climate.

@flavorjones flavorjones merged commit 4cf6209 into master Dec 18, 2020
@flavorjones flavorjones deleted the 854-css-includes-operator-whitespace branch December 18, 2020 13:59
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.

1 participant