Skip to main content

Bug Tracker

Side navigation

#13547 closed bug (invalid)

Opened March 01, 2013 10:23PM UTC

Closed March 17, 2013 08:36AM UTC

propHooks failing in IE9 under non-minified 1.9.1

Reported by: Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:

Line 2631 of the non-minified 1.9.1 fails with an exception under IE9 when it attempts to perform a getAttribute on an object that does not have a getAttribute method:

jQuery.each([ "href", "src" ], function( i, name ) {

jQuery.propHooks[ name ] = {

get: function( elem ) {

return elem.getAttribute( name, 4 );

However, the minified version of 1.9.1 does NOT fail this way. Looking at the minified code, it appears that it has a try/catch wrapped around the code, which catches the error:

i.propHooks[t]={get:function(n){var i=null;try{i=n.getAttribute(t,2)}catch(r){}return i}}

It appears that the minified code is still using the "4" flag instead of the "2" flag as specified in jQuery bug 10299.

Aren't the minified and the non-minified versions supposed to be identical?

The non-minified version of the code should be corrected like the minified version in order to fix this bug.

Attachments (0)
Change History (4)

Changed March 01, 2013 10:24PM UTC by rwaldron comment:1

owner: →
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—you may need to change this to a specific version depending on the test case.

To get you started, use this boilerplate: Open the link and click to "Fork" (in the top menu) to begin.

Also, please read:

Changed March 02, 2013 12:58AM UTC by comment:2

status: pendingnew

I have absolutely no idea how to recreate this problem outside of the large application use case in which I originally encountered it.

What I do know is that as I mentioned, the error occurs only in the non-minified code, and that upon examination, the minified code is functionally different than the non-minified code. The minified version of the code has error handling in the routine in question, while the non-minified version does not. I'm pretty sure this isn't the way it's supposed to be.

Changed March 02, 2013 08:52PM UTC by dmethvin comment:3

status: newpending

Can you confirm that your files are exact copies of the ones on Doesn't seem so from your description.

Changed March 17, 2013 08:36AM UTC by trac-o-bot comment:4

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!