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

RE: backward compatibility in scripting style sheets

From: Chris Wilson <cwilso@MICROSOFT.com>
Date: Sat, 21 Mar 1998 09:49:34 -0800
Message-ID: <C35556591D34D111BB5600805F1961B90508FDC7@red-msg-47.dns.microsoft.com>
To: "'John Ky (HxG)'" <z2206460@student.unsw.edu.au>, STYLE <www-style@w3.org>
We don't throw an error when you assign a value to an unknown property, only
when you assign an unknown value to a known property.  We did this in order
that IE4 may be used as a validator.

The W3C doesn't advise for or against it, inasmuch as neither the CSS or
Document Object Model Working Groups have defined exactly what script access
to stylesheets looks like or how it behaves (the DOM group is working on
it).  However, assigning a default value would almost certainly be wrong -
the CSS specification says, for composite properties at least, that if part
of the value is unrecognized the statement is to be ignored.

-Chris Wilson
 Internet Explorer Team
 cwilso@microsoft.com

> -----Original Message-----
> From:	John Ky (HxG) [SMTP:z2206460@student.unsw.edu.au]
> Sent:	Saturday, March 21, 1998 8:59 AM
> To:	STYLE
> Subject:	backward compatibility in scripting style sheets
> 
> In the current implementation of IE4, when scripting
> styles of individual elements, assigning styles with
> an incorrect style property produces an error dialog.
>  
> I fear that future extensions to the CSS will break
> IE4's implementation.  Does W3C advise for or
> against this?  Would it not be wiser to simply use
> a default style property when a given property is
> invalid?
Received on Saturday, 21 March 1998 12:49:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:54 GMT