473,407 Members | 2,320 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

How IE's and Firefox's XML DOM parsers deal with whitespace text nodes

Can someone please explain this section of this tutorial me?

http://www.w3schools.com/dom/dom_mozilla_vs_ie.asp

The relevant text I do not understand is:

"Internet Explorer, when using node.childNodes[], will NOT contain
these white-space nodes. In Mozilla, those nodes will be in the
array."

and

"Internet Explorer will skip the white-space text nodes that are
generated between nodes (e.g. new line characters), while Mozilla will
not. So, in the example above, Mozilla browsers will alert 9 child
nodes, while Internet Explorer will alert 4."

I checked the said file: http://www.w3schools.com/dom/books.xml

In both, Firefox 2.0 as well as IE 6.0, it had only 4 <bookelements.

Nov 2 '07 #1
0 3164

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

Similar topics

13
by: kaeli | last post by:
Can anyone explain this to me? It's driving me insane. Save this and run it in IE or Opera and then in Mozilla or Netscape 6+. In IE/Opera, I get the expected 4 alerts. In Mozilla/Netscape, I...
4
by: RobG | last post by:
I have a problem navigating a form in a table in IE using the DOM. I can do what I want in Firefox, but not in IE. The rest of my question and information is embedded in the following code. ...
2
by: RobG | last post by:
Why does Firefox insert #text nodes as children of TR elements? As a work-around for older Safari versions not properly supporting a table row's cells collection, I used the row's childNodes...
6
by: abcd_68 | last post by:
All, First off please note that I'm a novice at Javascript so please bear with me. Second, I did look at FAQs, this group, the web etc. but I'm still stuck. Problem is the following. I've...
1
by: KPS | last post by:
I'm attempting to create a simple treeview-like behavior in JavaScript. The desired behavior happens in IE but I cannot get the same to happen in FireFox. The primary thing I want to accomplish...
12
by: Q1tum | last post by:
Hi all, I got a problem with childNodes.length, I use the following XML for my guestbook: <?xml version="1.0" encoding="ISO-8859-1"?> <guestbook> <entry> <from>Q1tum</from>...
1
by: Cylix | last post by:
<div id="alertBox" style="position: absolute; border:1px dashed; z-index:2"> <table width="400" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td>THE TITLE </td> </tr> <tr>...
7
by: Thierry Lam | last post by:
I have the follownig codes: <html> <head> <title>Simple doc</title> </head> <body> <script type="text/javascript"> function greet() {
0
by: Water Cooler v2 | last post by:
Can someone please explain this section of this tutorial me? http://www.w3schools.com/dom/dom_mozilla_vs_ie.asp The relevant text I do not understand is: "Internet Explorer, when using...
4
by: Patrick Nolan | last post by:
I am using javascript to manipulate optgroups in select elements. When the results are displayed in Firefox 2.0 there is an annoying blank line at the top of the multi-line select box. This...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.