Bug Tracker

Modify

Ticket #1634 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

document.body is null!.2

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

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.

Change History

comment:1 Changed 6 years ago by arrix

This has been fixed by Brandon in svn.

comment:2 Changed 6 years ago by Bradley

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from 1.2.1 to 1.2.2

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.