[Bug 22008] Make it clear that there are syntax differences, add one about id attribute

https://www.w3.org/Bugs/Public/show_bug.cgi?id=22008

--- Comment #7 from Jukka K. Korpela <jukka.k.korpela@kolumbus.fi> ---
(In reply to comment #6)

> > The following information should be added to subclause 2.4:
> > 
> > The id attribute syntax now allows any nonempty string that does not contain
> > space characters. This is much more liberal than the HTML 4 syntax, but on
> > the other hand it disallows spaces at the start and at the end (id=" foo "
> > is valid HTML 4 but not valid HTML5).
> 
> This is mentioned elsewhere:
> 
> "The id global attribute is now allowed to have any value, as long as it is
> unique, is not the empty string, and does not contain space characters."
> http://html-differences.whatwg.org/#changed-attributes

The current formulation makes the change sound like a pure extension, when it
in fact invalidates some HTML 4 constructs.

But maybe it would be best to add the following general point to 2.4:

• Leading and trailing white space in attribute values is not ignored. This
makes some valid HTML4 constructs like id=" ab " invalid.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 13 May 2013 16:18:05 UTC