Skip to main content

Bug Tracker

Side navigation

#11397 closed bug (duplicate)

Opened February 27, 2012 06:07AM UTC

Closed July 12, 2012 07:38PM UTC

Last modified July 12, 2012 07:38PM UTC

$('#some_select').val() results in "use of attributes specified attribute is deprecated" warning on Firefox 7+

Reported by: glob Owned by: glob
Priority: low Milestone: 1.next
Component: attributes Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:
Description

$('#some_select').val() results in "use of attributes' specified attribute is deprecated" warning on firefox.

jquery is referencing the "specified" property on an Attr object, this is depreciated with Firefox 7, and always returns true. see https://developer.mozilla.org/En/DOM/Attr

the problem appears to be at line 2630 of 1.7.1:

return attributeNode && attributeNode.specified ?
Attachments (0)
Change History (12)

Changed February 27, 2012 01:23PM UTC by sindresorhus comment:1

owner: → glob
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.

Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.

Changed February 27, 2012 01:39PM UTC by glob comment:2

status: pendingnew

Changed March 10, 2012 02:17PM UTC by dmethvin comment:3

component: unfiledattributes
priority: undecidedlow
status: newopen

Changed June 18, 2012 03:21PM UTC by anonymous comment:4

Last changed 3 month ago..nothing happening here?

Changed June 18, 2012 03:23PM UTC by dmethvin comment:5

Sorry, anonymous, did we miss your pull request?

Changed July 11, 2012 11:00AM UTC by mail.someone@gmail.com comment:6

Bump it up ..still present in 1.8b2

Though it seems not to be in the same place

 valHooks: {
	option: {
		get: function( elem ) {
			// attributes.value is undefined in Blackberry 4.7 but
			// uses .value. See #6932
			var val = elem.attributes.value;
			return !val || val.specified ? elem.value : elem.text;
		}
	}, 

Changed July 12, 2012 07:12PM UTC by Dave Methvin comment:7

resolution: → fixed
status: openclosed

Fix #11397. Shush Firefox warning by re-breaking #6932 for BB 4.7.

At this point BlackBerry 4.7 (and related ancient browsers) should be scarce (released circa 2008) so #6932 will be closed wontfix for this edge case.

Changeset: e866893fd29b0328ebc282cf0ba716e6f87384c3

Changed July 12, 2012 07:31PM UTC by Dave Methvin comment:8

Revert "Fix #11397. Shush Firefox warning by re-breaking #6932 for BB 4.7."

This reverts commit e866893fd29b0328ebc282cf0ba716e6f87384c3.

Failures in IE6 when this is removed, unfortunately.

Changeset: c29660c5936b76787c4a864d8188b325bc81a81f

Changed July 12, 2012 07:33PM UTC by dmethvin comment:9

resolution: fixed
status: closedreopened

Changed July 12, 2012 07:34PM UTC by dmethvin comment:10

milestone: None1.next
status: reopenedopen

Changed July 12, 2012 07:38PM UTC by dmethvin comment:11

resolution: → duplicate
status: openclosed

Moving these all under #12072. At this time we are not in need of any additional "me too", "hey I see this on my console", or "when are you going to fix this" messages. We are aware of the issue.

Changed July 12, 2012 07:38PM UTC by dmethvin comment:12

Duplicate of #12072.