className

className

[1] Re: setAttribute--working in FF but not IE <mid:4257DF8E.9060900@hiveminds.net>

WinIEsetAttribute ('className', value) とか阿呆なことをしないといけないのは仕様書に従ったまでであるという話 (もちろん冗談)。

ちなみに仕様書:

[2] Document Object Model for MathML ( ( 版)) <http://www.w3.org/TR/2001/REC-MathML2-20010221/appendixd.html#dom_Element>

[3] Document Object Model for MathML ( ( 版)) <http://www.w3.org/Math/DOM/mathml2/appendixd.html#dom_Element>

[4] Web Applications 1.0 r7174 Give up and move classList and className to Element (DOM Core has defined them there for some time already), and let the SVG group figure out the fallout from this. ( ( 版)) <http://html5.org/tools/web-apps-tracker?from=7173&to=7174>

[5] The DOM Standard defines the class, id, and slot attributes · whatwg/html@36c9938 ( 版) <https://github.com/whatwg/html/commit/36c9938b102fecadf6029a248f40aae83ea099d2>

[6] Clarify that SVGElement.className overrides Element.className (nikosandronikos著, ) <https://github.com/w3c/svgwg/commit/b625e5ee19834f96ad004a197fb0b749fb3c64e6>