W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2006

[whatwg] HTML syntax: shortcuts for 'id' and 'class' attributes

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Thu, 30 Nov 2006 23:26:36 -0600
Message-ID: <456FBD0C.8070103@mit.edu>
Andrew Fedoniouk wrote:
> So if  HTML5 will allow following:
> 
> <p.myclass> ... </p>
> together with its full and equivalent form
> <p class="myclass"> ... </p>
> 
> then this will be backward compatible solution as
> HTML5UA will understand both forms - classic and simplified.
> Am I right?

No, because an HTML4 UA will not render that in any sort of reasonable way (for 
example, in an HTML4 UA the "p.myclass" tag will never be closed).

-Boris
Received on Thursday, 30 November 2006 21:26:36 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:50 UTC