This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25001 - Attr.specified
Summary: Attr.specified
Status: VERIFIED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: DOM (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Anne
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-11 03:08 UTC by Philip Jägenstedt
Modified: 2014-03-18 07:48 UTC (History)
4 users (show)

See Also:


Attachments

Description Philip Jägenstedt 2014-03-11 03:08:22 UTC
http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2879

This is supported and returns true in every browser I've tested. It's used by jQuery, and is encountered on ~7% of pages by Chrome's use counter system:

http://www.chromestatus.com/metrics/feature/timeline/popularity/162
Comment 1 Eric Seidel 2014-03-11 04:28:36 UTC
Careful, it's "page loads" not "pages".  7% of page loads from Chrome installs with anonymous statistics reporting enabled.  That's a ton of page loads. :)  We can get "pages" numbers as well by crawling the web, but that's a different question.

Regardless, it seems silly for this property to be marked as deprecated when it's seen on 7% of chrome page loads.
Comment 2 Philip Jägenstedt 2014-03-11 07:00:28 UTC
Thanks Eric, I'll make sure to be more precise when talking about use counters outside of blink-dev :)
Comment 3 Ian 'Hixie' Hickson 2014-03-12 05:29:13 UTC
The test in comment 0 tests something different than the bug subject line refers to. Can you elaborate on what this bug is about?
Comment 4 Philip Jägenstedt 2014-03-12 06:58:15 UTC
Oops, this is the correct test: http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2880

In other words, it looks like all browsers I've tested have a specified attribute on Attr objects. In Blink it's always true, but I haven't checked how it's implemented elsewhere.

As an experiment, I dropped it from Blink and ran the jQuery tests, which caused 20 failures in LayoutTests/jquery/attributes.html. The fact that it's used by jQuery probably accounts for a lot of that 7%.

I don't know for certain that specifying it is the best course of action, but it seems like the easiest fix.
Comment 6 Philip Jägenstedt 2014-03-18 07:48:01 UTC
Thanks!