<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>74959</bug_id>
          
          <creation_ts>2011-12-20 14:43:18 -0800</creation_ts>
          <short_desc>classList property undefined for SVG elements</short_desc>
          <delta_ts>2011-12-30 13:14:00 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>66284</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>EasyFix</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="James Robinson">jamesr</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>arv</cc>
    
    <cc>eric</cc>
    
    <cc>kling</cc>
    
    <cc>thorton</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>524842</commentid>
    <comment_count>0</comment_count>
    <who name="James Robinson">jamesr</who>
    <bug_when>2011-12-20 14:43:18 -0800</bug_when>
    <thetext>Testcase:

&lt;!DOCTYPE html&gt;
&lt;svg class=&quot;foo bar&quot;&gt;&lt;/svg&gt;
&lt;script&gt;
w(document.querySelector(&apos;svg&apos;).classList.length);
&lt;/script&gt;

produces &quot;2&quot; in Firefox and &quot;Uncaught TypeError: Cannot read property &apos;length&apos; of undefined on line 2&quot; in WebKit because the .classList property on the &lt;svg&gt; element is undefined.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>524852</commentid>
    <comment_count>1</comment_count>
    <who name="Erik Arvidsson">arv</who>
    <bug_when>2011-12-20 15:00:57 -0800</bug_when>
    <thetext>We should allow classList on any element that has className.

ie HTMLElement and SVGStylableElement

http://www.google.com/codesearch#search/&amp;exact_package=chromium&amp;q=className%20file:%5C.idl%20file:WebCore%20case:yes&amp;type=cs

This means that we need to update SVGStylableElement.idl and add tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>528223</commentid>
    <comment_count>2</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2011-12-30 13:14:00 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 66284 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>