[whatwg] attribute value normalization

Quoting Kornel Lesinski <kornel at ideadesigners.com>:
>> It should basically not happen at all. It appears that no browser has
>> implemented the 'may' from HTML4 and therefore we can now say 
>> browsers  must not trim.
>
> That conflicts with XML rules:
>
> "If the attribute type is not CDATA, then the XML processor must 
> further  process the normalized attribute value by discarding any 
> leading and  trailing space (#x20) characters, and by replacing 
> sequences of space  (#x20) characters by a single space (#x20) 
> character."


You got two things wrong. (1) Per HTML 4 the attribute type _is_ CDATA and (2)
this is not about XML. (At least, not yet.)


-- 
Anne van Kesteren
<http://annevankesteren.nl/>

Received on Thursday, 21 July 2005 10:46:53 UTC