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

[Bug 9965] White space in attributes - please justify why multiple spaces/linebreaks are problematic - or delete this requirement

From: <bugzilla@jessica.w3.org>
Date: Thu, 24 Jun 2010 21:51:28 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1ORuKW-00030w-Ne@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=9965





--- Comment #15 from Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>  2010-06-24 21:51:27 ---
(In reply to comment #14)
> (In reply to comment #1)
> > (In reply to comment #0)
> [...]
> > The correct thing to say here is:
> > Tabs, line feeds and carriage returns in attribute values must be encoded as
> > numeric character references. At least every second of consecutive spaces in
> > attribute values must be encoded as numeric character references (so that there
> > are no consecutive literal spaces in attribute values). This is because XML
> > parsing doesn't preserve unescaped tabs, line feeds, carriage returns or
> > consecutive spaces in attribute values.
> 
> Henri, can you point to documentation for this? Thanks.

He quoted it already: http://www.w3.org/TR/xml/#AVNormalize

But later addmitte an error with regard to collapsing of spaces:

- Comment #10 From Henri Sivonen 2010-06-22 06:28:04 (-) [reply] -------
Oops. Sorry. Collapsing consecutive U+0020 characters applies only to non-CDATA
attributes.

So I and Henri agree that http://www.w3.org/TR/xml/#AVNormalize require XHTML
parseres to normalize tabs, line feeds and carriage into space characters,
within CDATA attributes.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Thursday, 24 June 2010 21:51:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 24 June 2010 21:51:34 GMT