Skip to content

v2.0.2

Compare
Choose a tag to compare
@rgrove rgrove released this 10 Jan 18:01

Fixed

  • Whitespace in attribute values is now normalized correctly. #7

    Previously, attribute values were normalized according to the rules for non-CDATA attributes, but this was incorrect and based on a misreading of the spec.

    Attribute values are now correctly parsed as CDATA, meaning that whitespace is not collapsed or trimmed and whitespace character entities are resolved to their respective characters rather than being normalized to spaces (which was incorrect even by the non-CDATA rules!).