Re: XHTML attributes vs whitespace

Hi Henri,

thanks for the explanation. Dunno why I was confused.

So, wrt ISSUE-103:

If @srcdoc *is* a CDATA attribute, then:

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

does not apply, and thus it's not necessary to escape the SP character.

Thus, we could relax the advice from:

"In order to prevent attribute-value normalization, XML's whitespace 
characters — U+0009 CHARACTER TABULATION (HT), U+000A LINE FEED (LF), 
U+000D CARRIAGE RETURN (CR) and U+0020 SPACE — also need to be escaped. 
[XML]"

to

"In order to prevent attribute-value normalization, some of XML's 
whitespace characters — U+0009 CHARACTER TABULATION (HT), U+000A LINE 
FEED (LF) and U+000D CARRIAGE RETURN (CR) — also need to be escaped. [XML]"

Best regards, Julian

Received on Thursday, 14 October 2010 09:52:49 UTC