Open Juice10 opened 4 years ago
Hi, @Juice10! Thanks for opening this issue.
Unfortunately, it looks like we have never tried to add support for the case-sensitivity attribute selectors. This is relatively new, in Selectors Level 4 which is still in draft (although we're probably all familiar with how that works).
I'm unlikely to work on adding this support while I'm still trying to get v1.11.0 out the door, but I'll prioritize it after that. In the meantime, if you have time to work on this, I'd be super happy to help you craft a PR!
It seems likely we'll be able to deliver this as part of the CSS selector rewrite (see #2560) which is scheduled to land in v2.0.
Describe the bug
When using
.css(input[type=checkbox i]
Nokogiri kicks up an error:Nokogiri::CSS::SyntaxError (unexpected ' ' after '[:equal, "checkbox"]')
To Reproduce
Expected behavior
The
i
modifier should make the attribute selector case-insensitive.Environment
Additional context
More information on attribute selector operators: https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors