Skip to main content

Bug Tracker

Side navigation

#14256 closed bug (notabug)

Opened August 14, 2013 05:52AM UTC

Closed August 20, 2013 06:08PM UTC

In IE10, Object Tag has not getAttribute func

Reported by: quisa137@gmail.com 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~!

Attachments (0)
Change History (2)

Changed August 14, 2013 06:06AM UTC by quisa137@gmail.com comment:1

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/

Changed August 20, 2013 06:08PM UTC by dmethvin comment:2

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.