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

Re: About dropping the style attribute

From: Bruce Lawson <bruce.c.lawson@gmail.com>
Date: Mon, 25 Jun 2007 17:54:23 +0100
Message-ID: <197f58d30706250954t3751aea4n2cfb8f2d836a8dda@mail.gmail.com>
To: public-html@w3.org

I worked regularly on a site whose authors used regularly to use <h2
style="..."> in order to adjust letter spacing and font sizing so that
headlines of news stories would always take up equal horizontal room.

Obviously, each headline was different so it would be barbaric to give
each news headline an id and have an ever-expanding stylesheet.

It was the content editors who played with the styles, and swapped
synonyms and different phrases into the content until they achieved
the desired effect, so there was no possibility of doing this through
scripting.

You may think it foolish, but it's what they wanted to do and I see no
reason to deprecate it.

bruce

On 6/25/07, gonchuki <gonchuki@gmail.com> wrote:
>
> On 6/23/07, Patrick Garies <pgaries@fastmail.us> wrote:
> >
> > Craig Francis wrote:
> > > Considering that most CSS files are not generated by a server side
> > > scripting/programming language, how would you generate dynamic styles
> > > without the @style attribute?
> > DOM2 Style: http://www.w3.org/TR/DOM-Level-2-Style/
> > CSSOM:
> > http://dev.w3.org/cvsweb/~checkout~/csswg/cssom/Overview.html?content-type=text/html;%20charset=utf-8
> >
> > You can also use "document.createElement()" to generate "style" or
> > "link" elements.
> >
>
> as for this, I guess it would be practical to deprecate the attibute
> from the HTML side without deprecating it from the scripting side.
> scripting *needs* to use the style attribute on specific elements
> given it's dynamic nature, but i can't see why allowing further mixing
> of content with presentation would help. AFAIK, deprecating doesn't
> mean not supporting it's usage by UAs, but it gets more as
> discouraging it's use amongst both authors and WYSIWYG tools.
>
>
>
Received on Monday, 25 June 2007 16:54:32 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:45 UTC