W3C home > Mailing lists > Public > www-style@w3.org > June 2007

Re: About dropping the style attribute

From: James Craig <jcraig@apple.com>
Date: Tue, 26 Jun 2007 11:10:16 -0700
Message-Id: <BC681326-149F-4663-BDB8-247F92992718@apple.com>
Cc: public-html@w3.org, www-style@w3.org
To: Jens Meiert <jens.meiert@erde3.com>

Jens Meiert wrote:

>> I've realized now that the current spec drops the style attribute for
>> all elements except for the <font>, but I can't understand the
>> reasoning behind those decisions.
> And neither do I, and according to my experience as well as the  
> discussion on that subject there are several cases why we need to  
> keep the "style" attribute.

Some of the common JavaScript libraries use this for performance and  
consistency reasons, too. Prototype, for example, uses the [style] to  
toggle style values for a couple reasons. 1) So it doesn't have to  
override !important styles, and 2) because when checking the  
displayed state, performance of getAttribute is much faster than  

Received on Tuesday, 26 June 2007 18:14:43 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:29 UTC