W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2011

[whatwg] New attributes would degrade better than new elements

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Thu, 27 Oct 2011 11:51:53 +0300
Message-ID: <4EA91BA9.1060608@cs.tut.fi>
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/
Received on Thursday, 27 October 2011 01:51:53 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:37 UTC