Skip to main content

Bug Tracker

Side navigation

#9610 closed bug (duplicate)

Opened June 17, 2011 02:52PM UTC

Closed June 20, 2011 02:16PM UTC

Last modified June 20, 2011 02:16PM UTC

changed language protocol?

Reported by: IQX99 Owned by:
Priority: low Milestone: 1.next
Component: support Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:
Description

Win7, IE9

Previous legacy code: "if(elem.getElementsByTagName){...}" but this failed in IE9. Firefox, safari and chrome all ok.

changed to "if(typeof(elem.getElementsByTagName)=='function'){...}" works fine.

Has something changed with the way the if() checks for a return value?

Attachments (0)
Change History (5)

Changed June 17, 2011 03:15PM UTC by rwaldron comment:1

component: unfiledsupport
priority: undecidedlow
resolution: → invalid
status: newclosed

This code:

if(elem.getElementsByTagName) 

// or... 

if ( elem.getElementsByTagName )

Does not exist in jQuery.

Changed June 20, 2011 10:00AM UTC by anonymous comment:2

Please see jquery-1.6.1.js, line 5975

Best regards,

Replying to [comment:1 rwaldron]:

This code:
> if(elem.getElementsByTagName) 
> 
> // or... 
> 
> if ( elem.getElementsByTagName )
> 
Does not exist in jQuery.

Changed June 20, 2011 02:16PM UTC by timmywil comment:3

resolution: invalid
status: closedreopened

It used to, but has since been changed.

Changed June 20, 2011 02:16PM UTC by timmywil comment:4

resolution: → duplicate
status: reopenedclosed

Changed June 20, 2011 02:16PM UTC by timmywil comment:5

Duplicate of #9370.