-
Notifications
You must be signed in to change notification settings - Fork 21
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
Attribute selectors not fully parsed #6
Comments
The ASCII-case-insensitive attribute value flag (e.g. |
Any progress with this? |
Here is a RegExp that I've been working on to parse attribute selectors. /^\s*((?:\\.|[A-Za-z_\-\u{00a0}-\u{10ffff}])(?:\\.|[A-Za-z_\-0-9\u{00a0}-\u{10ffff}])*)(?:\s*(=|~=|\|=|\^=|\$=|\*=)\s*"?(.+?)"?)?\s*(i)?\s*$/u $1 - name BUGS
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, the parse tree doesn't include full details for attribute selectors. For example,
[att*=val]
is parsed into:It would be better if the "content" was further parsed, so we could get something like:
The text was updated successfully, but these errors were encountered: