W3C home > Mailing lists > Public > public-html@w3.org > June 2007

Re: About dropping the style attribute

From: Håkon Wium Lie <howcome@opera.com>
Date: Sun, 24 Jun 2007 11:15:01 +0200
Message-ID: <18046.13845.290194.65797@gargle.gargle.HOWL>
To: Craig Francis <craig@synergycms.com>
Cc: Alfonso Martínez de Lizarrondo <amla70@gmail.com>, "HTML WG" <public-html@w3.org>

Also sprach Craig Francis:

 > On 23 Jun 2007, at 23:25, Alfonso Martínez de Lizarrondo 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.

 > Personally I would prefer that we ditched the <font> tag before we  
 > lost the @style attribute...

I agree. The 'style' attribute is quite handy sometimes. E.g., when you
have that one-off element or when you're writing test documents. Also,
it keeps the separation between style and structure; by filtering out
everything called "style" your structure and content remains. 

The style element, when scoped to its parent, will be able to do this
-- and more -- but it is more verbose.

Finally, there's much content out there that uses the 'style'
attribute and the cost of keeping it is lower than the cost of
removing it.

Cheers,

-h&kon
              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Sunday, 24 June 2007 09:15:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:01 GMT