W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > January 2011

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

From: <bugzilla@jessica.w3.org>
Date: Fri, 21 Jan 2011 06:02:13 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1PgA4b-0000cq-8H@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=9965

Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #17 from Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no> 2011-01-21 06:02:12 UTC ---
(In reply to comment #16)
> The 27 September editor's draft contains the following changes:
> 
> Section 7 now reads:
> 
> **************************
> 
> 7. Attributes
> Because of attribute-value normalization in XML [XML10], polyglot markup does
> not contain tabs, line feeds, or carriage returns within CDATA attributes. 
> 
> Polyglot markup surrounds all attribute values with quotation marks. Attribute
> values may be surrounded either by single quotation marks or by double
> quotation marks.
> 
> **************************
> 
> I _believe_ this satisfies what, ultimately, this bug requested. Please let me
> know if I've omitted anything.
> 
> Thanks for your patience.

Sorry for my delay. I think this should be more specific. Tabs, line-feeds and
carriage-returns *can* be added, but if added, then they need to be escaped.
See:

http://dev.w3.org/html5/spec/the-iframe-element.html#process-the-iframe-attributes

which says:

]] Due to restrictions of the XML syntax, in XML the U+003C LESS-THAN SIGN
character (<) needs to be escaped as well. In order to prevent attribute-value
normalization, some of XML's whitespace characters  specifically U+0009
CHARACTER TABULATION (HT), U+000A LINE FEED (LF), and U+000D CARRIAGE RETURN
(CR)  also need to be escaped. [XML] [[

The simplest correction of your text above, would probably be add the word
"unescaped"  in the first paragraph, like so:

]]
 Because of attribute-value normalization in XML [XML10], polyglot markup does
 not contain **unescaped** tabs, line feeds, or carriage returns 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 Friday, 21 January 2011 06:02:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 21 January 2011 06:02:21 GMT