Skip to main content

Bug Tracker

Side navigation

#1634 closed bug (fixed)

Opened September 17, 2007 07:33AM UTC

Closed November 06, 2007 04:25AM UTC

document.body is null!.2

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

http://dev.jquery.com/ticket/1572 is not closed.

Demostrated code is internal to jquery's event processing pipeline.I'm talking about

$(function(){})

construct,before it's called fix() function already run,but body is not always available at the time.If I put script including instruction in "body",all works as expected,but in "head" section you can observe such anomaly quite easily-just reload several times page of moderate complexity and you'll see random "Object required" sparks.I'm using IE7 on vista,but IE6 has similar problem.This error not sacrifice Jquery's functionality,but it's very annoying by nature if "Script debugging" is enabled.

simple fix can be (b&&):

event.pageX = event.clientX + (e && e.scrollLeft || b&&
b.scrollLeft || 0);
...
event.pageY = event.clientY + (e && e.scrollTop || b&&
b.scrollTop || 0);

Thanks.

Attachments (0)
Change History (2)

Changed September 30, 2007 08:33AM UTC by arrix comment:1

This has been fixed by Brandon in svn.

Changed November 06, 2007 04:25AM UTC by Bradley comment:2

milestone: 1.2.11.2.2
resolution: → fixed
status: newclosed