Skip to main content

Bug Tracker

Side navigation

#13974 closed bug (fixed)

Opened May 31, 2013 10:01PM UTC

Closed June 02, 2013 05:37AM UTC

Last modified July 02, 2013 02:47PM UTC

Accessing XML attribute named "type" broken on IE 7

Reported by: derRaab Owned by: gibson042
Priority: high Milestone: 1.10.2/2.0.3
Component: selector Version: 1.10.1
Keywords: Cc:
Blocked by: Blocking:

I ran into an issue with jQuery 1.10.1 on IE 7. Accessing the XML attribute named "type" with $.attr( "type" ) throws an error in the new function interpolationHandler(); Here's a little test HTML document:

<!DOCTYPE html><html><head></head><body>

<!--jQuery 1.10.1 in IE 7 throws SCRIPT450 (wrong number of arguments) error in function interpolationHandler(){}-->

<script src=""></script>

<script type="text/javascript">

var xmlString = '<list><item type="type-a" other="other-a"/><item type="type-b" other="other-b"/></list>';

var xml = $.parseXML( xmlString );

$( xml).find( "item" ).each( function() {

Always works

var otherValue = $(this).attr( "other" );

alert( otherValue );

jQuery 1.10.1 in IE 7 throws SCRIPT450 (wrong number of arguments) error in function interpolationHandler(){}

var typeValue = $(this).attr( "type" );

alert( typeValue );




Attachments (0)
Change History (6)

Changed May 31, 2013 10:07PM UTC by derRaab comment:1

I also tried to use jsFiddle but it seems not to work properly!

Changed May 31, 2013 10:10PM UTC by derRaab comment:2

Changed June 01, 2013 04:30PM UTC by gibson042 comment:3

#13973 is a duplicate of this ticket.

Changed June 01, 2013 09:20PM UTC by gibson042 comment:4

component: unfiledselector
owner: → gibson042
priority: undecidedhigh
status: newassigned


Changed June 02, 2013 05:37AM UTC by Richard Gibson comment:5

resolution: → fixed
status: assignedclosed

Fix #13974: XML .attr("type")

(cherry picked from commit adf30903182f6ab99e3490ceac5a8c37bc59e325)

Changeset: 0b7c44a1da3ed278e6f50a76c4075620ddb595ad

Changed July 02, 2013 02:47PM UTC by dmethvin comment:6

milestone: None1.10.2/2.0.3