Modify ↓
Ticket #9083 (closed bug: invalid)
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
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 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.