[whatwg] New attributes would degrade better than new elements

Jukka K. Korpela jkorpela at cs.tut.fi
Thu Oct 27 01:51:53 PDT 2011


27.10.2011 11:42, Simon Pieters wrote:

>> It's difference between working on all browsers and working on some
>> browsers as well as being tweakable when JavaScript is enabled.
>
> <div type="nav"> is not stylable in IE6 because it doesn't support
> attribute selectors.

Granted, but
a) IE6 is dying, whereas IE7 and IE8 are and will be with us for a long 
time, and they do support attribute selectors
b) if you regard IE6 as still relevant, you can additionally use a class 
or id attribute (or keep it, if working with an existing document); on 
IE6, they work for <div> but not for <nav> as the entire element is unknown.

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/



More information about the whatwg mailing list