Bug Tracker

Ticket #4339 (closed bug: invalid)

Opened 6 years ago

Last modified 6 years ago

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

Description

"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

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

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

comment:2 Changed 6 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 6 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

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

Note: See TracTickets for help on using tickets.