Bug Tracker

Modify

Ticket #7517 (closed bug: duplicate)

Opened 3 years ago

Last modified 14 months ago

Uncaughted exception when call attr('tagName')

Reported by: quaff Owned by:
Priority: low Milestone: 1.5
Component: attributes Version: 1.4.4
Keywords: tagName exception attr Cc:
Blocking: Blocked by:

Description

$(document).attr('taggName'); will throw exception: TypeError: Cannot read property 'tagName' of null

'undefined' returns in jquery-1.4.3,query-1.4.2 ....

it's not backward compatible

Change History

comment:1 Changed 3 years ago by jeremy@…

Confirm this in FF3.5 jquery 1.4.4

comment:2 Changed 3 years ago by jitter

Duplicate of #7500

comment:3 Changed 3 years ago by addyosmani

  • Keywords tagName exception attr added
  • Priority changed from undecided to low
  • Status changed from new to closed
  • Component changed from unfiled to attributes
  • Resolution set to duplicate

comment:4 Changed 3 years ago by addyosmani

Duplicate of #7500.

comment:5 Changed 14 months ago by anonymous

The spaces on the type name are causing this problem.

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.