473,500 Members | 1,664 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DOM differences between IE/NN and Firefox

My NavBar menu code uses toElement.parentNode.id to check if the mouse has
moved to a specific parent or off the menus onto the page.

Moving off the menus, IE6 and NN8 give toElement.id as BODY so the parent
is HTML. Firefox gives toElement.id as HTML so parentNode gives an error.

It seems to me that IE and NN are correct. Is that right? A difference I
have to code around?

Thanks in anticipation.

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Oct 28 '05 #1
3 4851


Roger Withnell wrote:
My NavBar menu code uses toElement.parentNode.id to check if the mouse has
moved to a specific parent or off the menus onto the page.
Well toElement is not even part of the W3C DOM and I don't think Firefox
implements that. There is relatedTarget however.
Moving off the menus, IE6 and NN8 give toElement.id as BODY so the parent
is HTML. Firefox gives toElement.id as HTML so parentNode gives an error.

It seems to me that IE and NN are correct.


Why? Do you have any part of the HTML and/or CSS and/or DOM
specification to cite as to which is correct behavior?
--

Martin Honnen
http://JavaScript.FAQTs.com/
Oct 28 '05 #2

Sorry. I'm using relatedTarget for NN and toElement for IE.

Surely the parent of the div containing the menu is BODY, not HTML?

Are you saying the DOM does not specify this?

"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:43***********************@newsread4.arcor-online.net...


Roger Withnell wrote:
My NavBar menu code uses toElement.parentNode.id to check if the mouse
has moved to a specific parent or off the menus onto the page.


Well toElement is not even part of the W3C DOM and I don't think Firefox
implements that. There is relatedTarget however.
Moving off the menus, IE6 and NN8 give toElement.id as BODY so the
parent is HTML. Firefox gives toElement.id as HTML so parentNode gives
an error.

It seems to me that IE and NN are correct.


Why? Do you have any part of the HTML and/or CSS and/or DOM specification
to cite as to which is correct behavior?
--

Martin Honnen
http://JavaScript.FAQTs.com/


Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Oct 28 '05 #3


Roger Withnell wrote:
Sorry. I'm using relatedTarget for NN and toElement for IE.

Surely the parent of the div containing the menu is BODY, not HTML?

Are you saying the DOM does not specify this?


The div might be a child of the body which is a child of the html
element. Whether you move your mouse from a child of the body to the
body or outside of the body to the html element depends on various
things like how far the body stretches, on the margins and paddings of
elements and I think on the speed of mouse movements.
With
<http://home.arcor.de/martin.honnen/javascript/2005/10/test2005102801.html>
With both IE 6 and Mozilla 1.7 I am able to rapidly move the mouse
outside of the paragraph directly to the html element (as least as far
as the event handling reports it with relatedTarget or toElement), in
particular when the body has no padding.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Oct 28 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2230
by: yawnmoth | last post by:
I'm having some problems with css rendering differently on different browsers, on this page: http://www.frostjedi.com/terra/scripts/graemlin.php on both Opera and Firefox, I get spaces between...
5
28836
by: Gustaf Liljegren | last post by:
I use to trust Firefox, but in this case, I don't know what to think. My test page: http://gusgus.cn/test/index.html IE6 does the right thing. The containting <div> is 600px, and within it,...
4
9280
by: Stuart Perryman | last post by:
Hi, I have the following code which works just fine in IE6 but not in Firefox. It is an extract of several table rows each with an individual form. It is generated by php. <form...
87
9494
by: expertware | last post by:
Dear friends, My name is Pamela, I know little about CSS, but I would like to ask a question I have an image on a web page within a css layer: <DIV ID=MyLayer STYLE = "position:...
14
2295
by: expertware | last post by:
Ok! to avoid confusion I will start a new argument. Thanks!! FIREFOX 1.0.7 AND IE6 viewed through DATATIME: a summary REPORT ===============================================================...
10
67729
by: Eric-Sebastien Lachance | last post by:
Hey there, I decided to just create a 100% height and width div that filled the space over a background header image, and add an onclick event to redirect to the my index... Doesn't seem to work...
8
3870
by: Warren Sarle | last post by:
Here are two screen captures: http://www.warrensarle.com/borders.gif of this one web page: http://www.warrensarle.com/borders.php in IE and Firefox. A border-style of solid is rendered the same in...
3
1233
by: Mufasa | last post by:
Can anybody suggest websites that talk about what you need to do to make an IE site also work under Firefox. What things are allowed and what aren't - that type of thing. TIA - Jeff.
2
2059
by: brixton | last post by:
Hi, I have a three-column-page where the columns' width are specified in percent instead of fixed pixels (I have to have this due to a school assignment). It works great in Firefox but IE...
8
2371
by: jerrydigital | last post by:
Hi, does anyone know of a good route to take to allow users with Firefox and other browsers other than Internet Explore to use my website? My website is working great on Internet Explorer but I...
0
7136
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
6909
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5491
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4923
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3110
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3108
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1431
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
675
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
317
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.