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: Mon, 21 Jun 2010 12:13:39 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1OQfsh-0003xp-Ui@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=9965





--- Comment #3 from Henri Sivonen <hsivonen@iki.fi>  2010-06-21 12:13:39 ---
(In reply to comment #2)
> THIRD: What does you mean by ]]Tabs, line feeds and carriage returns in
> attribute values[[ ?

I mean the case where the author wants the *output* of the parser to have
U+0009, U+000A or U+000D in an attribute value.

> Do you mean e.g. class names with multiple spaces and
> linebraks between them? Is XML "against" doing this:?
> 
>          class="   class1        class2
>                          class3 "
> 
> as pposed to this: 
> 
>          class="class1 class2 class3"

Those parse to the same DOM in XML but to different DOMs in text/html. The
first case is not polyglot, since there's an observable DOM difference between
HTML and XML.

-- 
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 Monday, 21 June 2010 12:13:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 21 June 2010 12:13:43 GMT