Bug Tracker

Opened 15 years ago

Closed 15 years ago

Last modified 11 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:


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 15 years ago by john

Resolution: worksforme
Status: newclosed

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.