-
Notifications
You must be signed in to change notification settings - Fork 239
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 values aren't normalized properly #371
Comments
HTML doesn't seem to do any attribute normalization, so we ought to take that into account. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Section 3.3.3 of the XML spec (the attribute value normalization section) defines that
TL;DR: Bullet point 3 states that 0xD, 0xA, and 0x9 (
\r
,\n
and\t
) within an attribute value ought to be treated as whitespace and replaced with a whitespace character (0x20), unless the character was explicitly referenced.https://www.w3.org/TR/xml/#AVNormalize
Here's a half-written test which demonstrates the failure:
The text was updated successfully, but these errors were encountered: