Skip to main content

Bug Tracker

Side navigation

#1572 closed bug (worksforme)

Opened September 06, 2007 04:37PM UTC

Closed September 15, 2007 02:50AM UTC

Last modified March 15, 2012 01:29AM UTC

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);

Attachments (0)
Change History (1)

Changed September 15, 2007 02:50AM UTC by john comment:1

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.