Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 8 years ago

#1572 closed bug (worksforme)

document.body is null!

Reported by: XASD Owned by:
Priority: critical Milestone: 1.2.1
Component: event Version: 1.2
Keywords: Cc:
Blocked by: Blocking:

Description

http://dev.jquery.com/ticket/1402 still not resolved for page load phase,look at http://www.microsoft.com/technet/archive/itsolutions/intranet/build/chapt9.mspx?mfr=true jQuery.event.fix() method contains following lines: b = document.body; it's null -body is not available!!!

and this line thows "Object required" because e.scrollLeft=0 and b is null:

event.pageX = event.clientX + (e && e.scrollLeft
b.scrollLeft 0);

Change History (1)

comment:1 Changed 12 years ago by john

Milestone: 1.21.2.1
Resolution: worksforme
Status: newclosed
Version: 1.1.41.2

Wait - when are you running this? If you're running this inside document ready or window load then there should be no problem, as the document body will absolutely be available.

Note: See TracTickets for help on using tickets.