Bug Tracker

Modify

Ticket #9610 (closed bug: duplicate)

Opened 2 years ago

Last modified 2 years ago

changed language protocol?

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

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?

Change History

comment:1 follow-up: ↓ 2 Changed 2 years ago by rwaldron

  • Priority changed from undecided to low
  • Resolution set to invalid
  • Status changed from new to closed
  • Component changed from unfiled to support

This code:

if(elem.getElementsByTagName) 

// or... 

if ( elem.getElementsByTagName )

Does not exist in jQuery.

comment:2 in reply to: ↑ 1 Changed 2 years ago by anonymous

Please see jquery-1.6.1.js, line 5975

Best regards,

Replying to rwaldron:

This code:

if(elem.getElementsByTagName) 

// or... 

if ( elem.getElementsByTagName )

Does not exist in jQuery.

comment:3 Changed 2 years ago by timmywil

  • Status changed from closed to reopened
  • Resolution invalid deleted

It used to, but has since been changed.

comment:4 Changed 2 years ago by timmywil

  • Status changed from reopened to closed
  • Resolution set to duplicate

comment:5 Changed 2 years ago by timmywil

Duplicate of #9370.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.