Skip to main content

Bug Tracker

Side navigation

#8925 closed enhancement (invalid)

Opened April 20, 2011 11:18AM UTC

Closed May 05, 2011 07:52AM UTC

Some fix in method call in Null object

Reported by: Owned by:
Priority: low Milestone:
Component: unfiled Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:

I had some worning error. It's not so dangerouse.

In next code we can take a null parent so null doesn't have a method .parentNode.

var withinElement = function( event ) {

Check if mouse(over|out) are still within the same parent element

var parent = event.relatedTarget;

Firefox sometimes assigns relatedTarget a XUL element

which we cannot access the parentNode property of

try {

Chrome does something similar, the parentNode property

// can be accessed but is null.

if ( parent !== document && !parent.parentNode ) {



Attachments (0)
Change History (2)

Changed April 20, 2011 01:53PM UTC by addyosmani comment:1

owner: →
priority: undecidedlow
status: newpending

Thanks for submitting a ticket to the jQuery Bug Tracker. Please supply us with a valid test case on reproducing the behaviour you feel is currently breaking.

Changed May 05, 2011 07:52AM UTC by trac-o-bot comment:2

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!