W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2005

[whatwg] attribute value normalization

From: Kornel Lesinski <kornel@ideadesigners.com>
Date: Thu, 21 Jul 2005 21:36:39 +0100
Message-ID: <op.st957dv0jj9hi8@osx.local>
On Thu, 21 Jul 2005 18:46:53 +0100, Anne van Kesteren  
<fora at annevankesteren.nl> wrote:

>> 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

Are you sure? HTML4 DTD defines input type as enumeration, and all sources  
I've found say that's not the same as CDATA.

-- 
regards, Kornel Lesinski
Received on Thursday, 21 July 2005 13:36:39 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:42 UTC