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

Boris Zbarsky bzbarsky at mit.edu
Thu Nov 30 21:26:36 PST 2006

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).


More information about the whatwg mailing list