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

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 UTC