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

Martin Atkins mart at degeneration.co.uk
Fri Dec 1 00:46:23 PST 2006

Andrew Fedoniouk wrote:
> | >
> | > <p.myclass>...</p> is equivalent of
> | > <p class="myclass">...</p>
> | >
> |
> | HTML5 is meant to be backwards compatible, so this is out of the question.
> And where do you see problems with backward compatibility?
> Or let's put this way: what would be a definition of backward compatibility in 
> terms of HTML5?

Anything specified in HTML5 must degrade gracefully in pre-HTML5 
software. Unless at the very least current browsers parse <p.myclass> as 
<p> this proposal is unworkable under this constraint.

More information about the whatwg mailing list