Bug Tracker

Opened 14 years ago

Closed 14 years ago

#4339 closed bug (invalid)

ownerDocument is null in stead of "#<an HTMLDocument>"

Reported by: Spiked Owned by:
Priority: major Milestone: 1.4
Component: unfiled Version: 1.3.2
Keywords: ownerdocument Cc:
Blocked by: Blocking:


"Uncaught TypeError: Cannot read property 'body' of null," source: file:///<snip>/jquery-1.3.2.js (4185) uncaught exception TypeError: Cannot read property 'body' of null

$ print this[0] #<an HTMLDocument> $ print this[0].ownerDocument null

line #4185: if ( this[0] === this[0].ownerDocument.body ) return jQuery.offset.bodyOffset( this[0] );

Change History (3)

comment:1 in reply to:  description Changed 14 years ago by Spiked

This came from making a draggable from a non-existant selector.

comment:2 Changed 14 years ago by dmethvin

Sorry, I don't understand. Can you create a simple test case with the html and javascript required to reproduce the error?

comment:3 Changed 14 years ago by dmethvin

Resolution: invalid
Status: newclosed

Please reopen with a test case if the problem still exists.

Note: See TracTickets for help on using tickets.