hax / hax/selector-utils

Handling sibling selector `~` will break attribute selector `~=`

Open
#1 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

https://github.com/hax/selector-utils/blob/master/Selector.js#L61
and
https://github.com/hax/selector-utils/blob/master/Selector.js#L98

A hotfix for this regex approach could be: `/\s*([>+]|~(?!=))\s*|\s+/` and `/[, >+]|~(?!=)/`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.