css
css copied to clipboard
CSS Selectors for Go
It would be great to implement the `:has` css selector, now supported by most major browsers other than Firefox. - Spec: https://www.w3.org/TR/selectors-4/#has-pseudo - Browser Support: https://caniuse.com/css-has - Firefox Ticket: https://bugzilla.mozilla.org/show_bug.cgi?id=418039...
Question marks needs `\\` as we must also escape the backslash itself, using another backslash, like: "\\?". [See example in JS section](https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll#examples) Minimal reproducible example, this should not fail. ```go...
The parser generates an error when parsing an element name in upper case, e.g., `css.Parse("DIV")`, which _is_ working in a browser. I use this library for [gost](http://github.com/gost-dom/browser), a headless browser...