W3C home > Mailing lists > Public > www-style@w3.org > March 2004

Re: Proposal: version at-rule

From: Christoph Päper <christoph.paeper@tu-clausthal.de>
Date: Fri, 26 Mar 2004 16:39:42 +0100
Message-ID: <0f4101c41348$8f28df10$3ef4ae8b@heim4.tuclausthal.de>
To: <www-style@w3.org>

*Chris Moschini*:
> document.getElementById( 'myDiv' )
> was impossible - and so, long, browser-sniffing blocks were necessary,
> using document.all and layers.

Good cross-browser, cross-version scripts don't test for such random things,
but for methods they are really using, like

  if (document.getElementById)

Perhaps---although I doubt it---CSS should have such an "if feature", but
certainly not some generic and random switch based upon UA strings or alleged
support for a certain level of CSS.

> What point would there be to an author to write any more than
> the bare minimum into an @useragent block?

Authors are stupid. Can't change that. There is however no need to give them
an axe when they need a knife or just their fingernails.
Received on Friday, 26 March 2004 10:38:43 UTC

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