Bug Tracker

Opened 6 years ago

Closed 6 years ago

#14256 closed bug (notabug)

In IE10, Object Tag has not getAttribute func

Reported by: quisa137@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.2
Keywords: Cc:
Blocked by: Blocking:

Description

Hello, in jQuery Source Code. 1840 line,

return val === undefined ?
		support.attributes || !documentIsHTML ?
			elem.getAttribute( name ) :
			(val = elem.getAttributeNode(name)) && val.specified ?
				val.value :
				null :
		val;

IE10`s "Object" Tag has not getAttribute function.

So, I want fix it like next code.

return val === undefined ?
		support.attributes && elem.getAttribute != null || !documentIsHTML ?
			elem.getAttribute( name ) :
			(val = elem.getAttributeNode(name)) && val.specified ?
				val.value :
				null :
		val;

In my case, I used jQuery.remove() method to destory popup DIV, which contain Flash Object(https://code.google.com/p/swfupload/). Other Browsers are has worked well. But, In IE10,my Code has broken. Script Error Code is 'SCRIPT5007: Object is required'.

Thank you~!

Change History (2)

comment:1 Changed 6 years ago by quisa137@…

Hello, in jQuery Source Code. 1840 line,

return val === undefined ?
		support.attributes || !documentIsHTML ?
			elem.getAttribute( name ) :
			(val = elem.getAttributeNode(name)) && val.specified ?
				val.value :
				null :
		val;

IE10`s "Object" Tag has not getAttribute function.

So, I want fix it like next code.

return val === undefined ?
		support.attributes && elem.getAttribute != null || !documentIsHTML ?
			elem.getAttribute( name ) :
			(val = elem.getAttributeNode(name)) && val.specified ?
				val.value :
				null :
		val;

In my case, I used jQuery.remove() method to destory popup DIV, which contain Flash Object( https://code.google.com/p/swfupload/). Other Browsers are has worked well. But, In IE10,my Code has broken. Script Error Code is 'SCRIPT5007: Object is required'.

Thank you~!

http://jsfiddle.net/SGcom/zTLp5/

comment:2 Changed 6 years ago by dmethvin

Resolution: notabug
Status: newclosed

I agree there seems to be some problem with the swfupload plugin, but you should report that to them. See #12977 and #12945.

Note: See TracTickets for help on using tickets.