Modify ↓
Ticket #9610 (closed bug: duplicate)
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
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.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

This code:
Does not exist in jQuery.