Skip to main content

Bug Tracker

Side navigation

#8139 closed bug (duplicate)

Opened February 02, 2011 10:22AM UTC

Closed February 02, 2011 11:51AM UTC

Last modified March 13, 2012 04:15PM UTC

IE 9 not suported getElementsByTagName when load content

Reported by: svcorp77 Owned by:
Priority: blocker Milestone: 1.5.1
Component: manipulation Version: 1.5
Keywords: Cc:
Blocked by: Blocking:
Description

jQuery.clone function

bug when IE 9 try to load content from web:

$('<div>Try to load content</div>')
	.load('http://bugs.jquery.com/report', function() {
		alert('OK');
	}); 

FIX:

			// Using Sizzle here is crazy slow, so we use getElementsByTagName
			// instead
			// but for IE Sizzle for sure-)
			if ("getElementsByTagName" in elem ) {
				srcElements = elem.getElementsByTagName("*");
				destElements = clone.getElementsByTagName("*");
			}else{
				srcElements = $('*', elem).get();
				destElements = $('*', clone).get();
			};
Attachments (0)
Change History (3)

Changed February 02, 2011 11:51AM UTC by jitter comment:1

component: unfiledmanipulation
milestone: 1.next1.5.1
priority: undecidedblocker
resolution: → duplicate
status: newclosed

Changed February 02, 2011 11:51AM UTC by jitter comment:2

Duplicate of #8052.

Changed January 17, 2012 03:19AM UTC by anonymous comment:3

thanks this fixed a glitch on my site