Skip to main content

Bug Tracker

Side navigation

#9083 closed bug (invalid)

Opened May 04, 2011 05:04AM UTC

Closed May 04, 2011 02:08PM UTC

Last modified March 14, 2012 05:04AM UTC

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:
Blocked by: Blocking:
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

Attachments (0)
Change History (2)

Changed May 04, 2011 02:08PM UTC by timmywil comment:1

component: unfiledattributes
priority: undecidedlow
resolution: → invalid
status: newclosed

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.

Changed May 04, 2011 02:09PM UTC by timmywil comment:2

#9084 is a duplicate of this ticket.