Closed
Bug 131944
Opened 23 years ago
Closed 23 years ago
Setting attriubte className does not work
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
VERIFIED
INVALID
People
(Reporter: bugzilla, Assigned: jst)
References
()
Details
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.9+)
Gecko/20020317
BuildID: 20020317
object.setAtribute("className", "myClass");
does not work.
Setting the attribute "class" work, but according to the W3:
"className of type DOMString
The class attribute of the element. This attribute has been renamed due to
conflicts with the "class" keyword exposed by many languages. See the class
attribute definition in HTML 4.0."
So then you should be able to set the attribute className.
Comment 1•23 years ago
|
||
className is how the class name is exposed via the DOM as in
HTMLElement.className. Setting the Attribute 'class' via
HTMLElement.setAttribute('class', 'value') and HTMLElement.className = 'value'
are equivalent. -> INVALID
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
Component: DOM: HTML → DOM: Core & HTML
QA Contact: stummala → general
You need to log in
before you can comment on or make changes to this bug.
Description
•