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

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 UTC