ianprime0509 / zig-xml

XML parser for Zig
http://ianjohnson.dev/zig-xml/
BSD Zero Clause License
14 stars 3 forks source link

Attribute value normalization #5

Closed ianprime0509 closed 1 year ago

ianprime0509 commented 1 year ago

https://www.w3.org/TR/REC-xml/#AVNormalize

All whitespace characters (including newlines) in attribute values need to be normalized to spaces. As with #2 (which this depends on), this could probably be implemented at the Scanner level with thoughtful use of additional states/tokens.