RESOLVED WONTFIX113580
Remove hasAttributes
https://bugs.webkit.org/show_bug.cgi?id=113580
Summary Remove hasAttributes
Erik Arvidsson
Reported 2013-03-29 07:27:27 PDT
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
Attachments
Alexey Proskuryakov
Comment 1 2013-03-29 08:39:48 PDT
Looks like Mozilla folks are removing it in part due to believing that WebKit doesn't support it? "WebKit seems not to support the method, so probably there's no big compat risk."
Aryeh Gregor
Comment 2 2013-04-02 07:45:24 PDT
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
Aryeh Gregor
Comment 3 2013-04-02 07:46:07 PDT
Michael Kaply
Comment 4 2013-04-02 07:54:45 PDT
> Looks like Mozilla folks are removing it in part due to believing that WebKit doesn'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't have it. The core question here is why was it removed from Webkit in the first place.
Aryeh Gregor
Comment 5 2013-04-02 08:30:23 PDT
WebKit didn't remove it, it moved it from Node to Element. This follows the newer DOM spec. I don't get why the spec moves things like this, though.
Erik Arvidsson
Comment 6 2013-04-02 08:36:01 PDT
(In reply to comment #5) > WebKit didn't remove it, it moved it from Node to Element. This follows the newer DOM spec. I don'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.
Ahmad Saleem
Comment 7 2022-08-06 15:00:34 PDT
All browsers support it now as per MDN, I don'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 "RESOLVED WONTFIX". Please ignore, if I am wrong and mark it accordingly. Thanks!
Note You need to log in before you can comment on or make changes to this bug.