Issues with parseIdentifier
and escaped control characters
#1053
Labels
Milestone
parseIdentifier
and escaped control characters
#1053
During removal of support for IE hacks (#995), it was found that
parseIdentifier()
treats the first character differently to subsequent characters - it does not attempt to escape the first character;TAB
orNUL
with the literal character, so the result is, e.g., a\
followed by an actualTAB
, rather than\t
or\9
.Perhaps these characters should not be allowed in identifiers anyway. Would need to check the spec, but I think the idea of the IE hacks was for IE-specific rules, so I expect these characters should be disallowed (as well as other control characters).
This was the test CSS:
The text was updated successfully, but these errors were encountered: