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

Re: About dropping the style attribute

From: gonchuki <gonchuki@gmail.com>
Date: Tue, 26 Jun 2007 17:29:17 -0300
Message-ID: <8320a9390706261329h2537823fg3407d1e0eba6bc1f@mail.gmail.com>
To: public-html@w3.org

On 6/26/07, Jens Meiert <jens.meiert@erde3.com> wrote:
> > i still must insist that dropping the attribute form the HTML side
> > doesn't mean we won't have it on the javascript side as a property of
> > HTMLElement.
>
> That just doesn't suffice. How will you handle unique formatting, when desired? How should we expect ad partners to cooperate, not to speak of getting them aboard? How's scoped style sheets handling? What signal is it leading everything through by scripting?
>
> I'm no "style" attribute advocate, but it definitely makes sense under certain circumstances.
>
> --
> Jens Meiert
> http://meiert.com/en/
>
>

I see no special limit on ad serving other than some paranoid
advertisers that deliver their code with a style="border: 0", which in
this case we can still manually remove the attribute and handle it via
CSS.
As for unique formatting, that's something we already do via #id, and
given the greater weight given to the rule it (sic) outweights
whatever is set, giving the desired 'unique formatting'.
IMHO, HTML5 should be the final step in educating authors and
authoring tools alike to separate content from presentation, several
tags and attibutes are being dropped in this spec, and dropping the
style attribute is the last signal to say "presentation doesn't belong
here".

side note: may be we could add to UA render guidelines a directive on
not to add borders to images? I know no actual designer that doesn't
set " img { border: 0 } " on top of every CSS file he/she builds, and
it's part of every "reset template" out there even when the term
"reset template" wasn't even coined.
Received on Tuesday, 26 June 2007 20:29:20 GMT

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