W3C home > Mailing lists > Public > www-style@w3.org > November 2000

Re: Off Topic: Re: changing css properties in the dom

From: ValerieGSharp <ValerieGSharp@netscapeonline.co.uk>
Date: Wed, 22 Nov 2000 20:35:25 +0000
Message-ID: <3A1C2E0D.ABC00F12@netscapeonline.co.uk>
To: Dylan Schiemann <dylans@yahoo.com>
CC: www-style@w3.org
Dylan Schiemann wrote:
> 
> Val Sharp wrote:
> > ....
> > document.getElementById("pId").className="go";
>
> This should actually be
> document.getElementById("pId").class="go";
> IE incorrectly uses className
> ....


DOM2 - Appendix E: ECMA Script Language Binding: "Object HTMLElement"
(http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510/ecma-script-binding.html#HTML-ECMA)
explicitly gives the property as 'className'.

-- 
Regards,
Val Sharp - Edinburgh
Received on Wednesday, 22 November 2000 15:43:24 GMT

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