<?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>113580</bug_id>
          
          <creation_ts>2013-03-29 07:27:27 -0700</creation_ts>
          <short_desc>Remove hasAttributes</short_desc>
          <delta_ts>2022-08-06 15:00:43 -0700</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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://dom.spec.whatwg.org/#element</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Erik Arvidsson">arv</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>ayg</cc>
    
    <cc>bfulgham</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>consulting</cc>
    
    <cc>rniwa</cc>
    
    <cc>syoichi</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>866150</commentid>
    <comment_count>0</comment_count>
    <who name="Erik Arvidsson">arv</who>
    <bug_when>2013-03-29 07:27:27 -0700</bug_when>
    <thetext>Firefox does not support hasAttributes (not even on Element). It is not part of the latest DOM spec either.

It sounds like a high risk. We should watch the outcome of this battle:

https://bugzilla.mozilla.org/show_bug.cgi?id=849661</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>866186</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-03-29 08:39:48 -0700</bug_when>
    <thetext>Looks like Mozilla folks are removing it in part due to believing that WebKit doesn&apos;t support it?

&quot;WebKit seems not to support the method, so probably there&apos;s no big compat risk.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>867828</commentid>
    <comment_count>2</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2013-04-02 07:45:24 -0700</bug_when>
    <thetext>Yeah, whoops -- I tested a non-element for support.  At this point I think it should be re-added to the spec.  Spec bug:

https://bugs.webkit.org/show_bug.cgi?id=113580</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>867830</commentid>
    <comment_count>3</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2013-04-02 07:46:07 -0700</bug_when>
    <thetext>I meant: https://www.w3.org/Bugs/Public/show_bug.cgi?id=21522</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>867840</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kaply">consulting</who>
    <bug_when>2013-04-02 07:54:45 -0700</bug_when>
    <thetext>&gt; Looks like Mozilla folks are removing it in part due to believing that WebKit doesn&apos;t support it?

Webkit had it, but removed it. I discovered this from some code that broke in Chrome 25.

http://code.google.com/p/chromium/issues/detail?id=222421

Webkit had it, then removed it.
Firefox decided to remove it because Webkit doesn&apos;t have it.
The core question here is why was it removed from Webkit in the first place.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>867870</commentid>
    <comment_count>5</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2013-04-02 08:30:23 -0700</bug_when>
    <thetext>WebKit didn&apos;t remove it, it moved it from Node to Element.  This follows the newer DOM spec.  I don&apos;t get why the spec moves things like this, though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>867877</commentid>
    <comment_count>6</comment_count>
    <who name="Erik Arvidsson">arv</who>
    <bug_when>2013-04-02 08:36:01 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; WebKit didn&apos;t remove it, it moved it from Node to Element.  This follows the newer DOM spec.  I don&apos;t get why the spec moves things like this, though.

Only elements can have attributes so having attribute related APIs on non Elements is nonsensical.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1889418</commentid>
    <comment_count>7</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-06 15:00:34 -0700</bug_when>
    <thetext>All browsers support it now as per MDN, I don&apos;t think we are going to remove it:

Link - https://developer.mozilla.org/en-US/docs/Web/API/Element/hasAttributes

I am going to mark this as &quot;RESOLVED WONTFIX&quot;. Please ignore, if I am wrong and mark it accordingly. Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>