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 <book> elements.

.



Relevant Pages

  • Yet another XSS vulnerability in PHP NUKE
    ... Internet Explorer 5.5 ... There is yet another XSS vulnerability in PHP-Nuke 6.0 ... above script in the search feild of the web links section. ... With Mozilla it will actually show the .gif ...
    (Bugtraq)
  • Re: How IEs and Firefoxs XML DOM parsers deal with whitespace text nodes
    ... "Internet Explorer, when using node.childNodes, will NOT contain ... these white-space nodes. ... In Mozilla, those nodes will be in the ... So with Mozilla and with IE/MSXML with preserveWhiteSpace set to true the object model contains white space text nodes between the book element nodes. ...
    (comp.text.xml)
  • Re: Friends dont let friends use Internet Explorer
    ... > Internet Explorer because of severe security problems. ... > They recommend Mozilla or Firebird, ... When testing MSIE on that site, I got an Internet Explorer prompt ...
    (microsoft.public.security)
  • Re: Firefox stole IEs associations!
    ... If IE didn't take the associations back when you told it to, ... Check the box "Internet Explorer should check to see whether it is the ... where one specifies which browser is the default for everything at one go, ... changed everything mozilla like to IE, I still find most of my links are ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • [Full-Disclosure] RE: Internet explorer 6 on windows XP allows exection of arbitrary code ( and oper
    ... > arbitrary code (and opera and Mozilla too) ... > browser nothing perticularly serious about that. ... Mozilla does tend to be more strict than Internet Explorer, ... Having worked as QA Lead and created quite a number of applications myself, ...
    (Full-Disclosure)