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

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