Bug Tracker

Modify

Ticket #9083 (closed bug: invalid)

Opened 2 years ago

Last modified 14 months ago

Uncaught TypeError: Object #<HTMLDocument> has no method 'getAttribute'

Reported by: quaff Owned by:
Priority: low Milestone: 1.next
Component: attributes Version: 1.6
Keywords: Cc:
Blocking: Blocked by:

Description

var tagName = $(container).attr('tagName'); throws exception when container is document it break compatibility with previous version,it must return undefined

tested in chrome 12.0.742.16 dev-m

Change History

comment:1 Changed 2 years ago by timmywil

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

This is expected behavior as of jQuery 1.6. tagName is a property that should either be checked by doing elem.tagName or using the new  http://api.jquery.com/prop method. For more information, see the  release notes.

comment:2 Changed 2 years ago by timmywil

#9084 is a duplicate of this ticket.

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.