RESOLVED DUPLICATE of bug 66284 74959
classList property undefined for SVG elements
https://bugs.webkit.org/show_bug.cgi?id=74959
Summary classList property undefined for SVG elements
James Robinson
Reported 2011-12-20 14:43:18 PST
Testcase: <!DOCTYPE html> <svg class="foo bar"></svg> <script> w(document.querySelector('svg').classList.length); </script> produces "2" in Firefox and "Uncaught TypeError: Cannot read property 'length' of undefined on line 2" in WebKit because the .classList property on the <svg> element is undefined.
Attachments
Erik Arvidsson
Comment 1 2011-12-20 15:00:57 PST
We should allow classList on any element that has className. ie HTMLElement and SVGStylableElement http://www.google.com/codesearch#search/&exact_package=chromium&q=className%20file:%5C.idl%20file:WebCore%20case:yes&type=cs This means that we need to update SVGStylableElement.idl and add tests.
Andreas Kling
Comment 2 2011-12-30 13:14:00 PST
*** This bug has been marked as a duplicate of bug 66284 ***
Note You need to log in before you can comment on or make changes to this bug.