Skip to main content

Bug Tracker

Side navigation

#4339 closed bug (invalid)

Opened March 12, 2009 01:04PM UTC

Closed May 10, 2009 04:39PM UTC

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


line #4185:

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

Attachments (0)
Change History (3)

Changed March 12, 2009 01:32PM UTC by Spiked comment:1

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

Changed March 12, 2009 11:30PM UTC by dmethvin comment:2

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

Changed May 10, 2009 04:39PM UTC by dmethvin comment:3

resolution: → invalid
status: newclosed

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