Bug Tracker

Modify

Ticket #4339 (closed bug: invalid)

Opened 5 years ago

Last modified 5 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 5 years ago by Spiked

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

comment:2 Changed 5 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 5 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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.