-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Use [*=" "]
to check for forbidden whitespaces
#397
Comments
Other way around: should it have its own test, just as invalid nesting? This is syntax, after all. |
For the sake of completeness, it was @Schepp's idea. I just made the demos and tested it. :) |
Thanks for pointing him out 👍 |
Reading the HTML standard, I only found two attributes that may not include whitespaces:
Regarding the |
Well, in fact the RFC mentions that no whitespace should be present in a language tag (2 paragraphs above this anchor) and the spec says "Its value must be a valid BCP 47 language tag" — using "a", so I interpret this as "a single". As far as I understand, that means |
You are correct, I didn't read that RFC in detail, this I missed that part. Sorry about that! Will include that check in the #396 as well. |
No worry, reading specs and RFCs is not a that easy (and probably not everyone's hobby neither!). Your insights and researches are greatly appreciated, thanks a lot ❤️ |
A few attributes shouldn't contain any whitespace, such as
id
orlang
(see #396).@matuzo's clever selector using the contains flag for attribute selector would help a lot. Things to consider:
Quite a big one :)
The text was updated successfully, but these errors were encountered: