[whatwg] HTML syntax: shortcuts for 'id' and 'class' attributes
news at terrainformatica.com
Thu Nov 30 22:09:50 PST 2006
----- Original Message -----
From: "Boris Zbarsky" <bzbarsky at mit.edu>
To: "Andrew Fedoniouk" <news at terrainformatica.com>
Cc: <whatwg at lists.whatwg.org>
Sent: Thursday, November 30, 2006 9:26 PM
Subject: Re: [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, what about this then:
<p .myclass> ... </p>
<p #myid> ... </p>
(tag name and attribute delimeted by space)
Can this be considered as enough backward compatible ?
I am trying to analyze Ruby fenomena in respect of HTML5.
Probably such "sweet" syntax features will help to popularize HTML5 even
In my personal opinion HTML4 is not perfect but good enough for the needs
Web Applications. It is CSS and scripting model that failed to provide
functionality modern web application require. It is enough to take a look
people are doing with AJAX and outskirts currently.
HTML per se is not a bottleneck I would say.
More information about the whatwg