W3C home > Mailing lists > Public > public-html@w3.org > October 2010

Re: XHTML attributes vs whitespace

From: Julian Reschke <julian.reschke@gmx.de>
Date: Thu, 14 Oct 2010 11:51:59 +0200
Message-ID: <4CB6D2BF.6060204@gmx.de>
To: Henri Sivonen <hsivonen@iki.fi>
CC: public-html@w3.org
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

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:20 UTC