www.webdeveloper.com
Results 1 to 5 of 5

Thread: Blank Nodes In IE

Hybrid View

  1. #1
    Join Date
    Apr 2011
    Posts
    3

    Unhappy Blank Nodes In IE

    Hey guys, I'm new here so apologies if this is in the wrong place or whatever.

    I currently have a website that pulls in some XML. Every browser loves it, but (surprise!) Internet Explorer can't pull in anything past the first empty node.

    You can see this in action here:
    http://juicenothing.com/best-albums-...no-work-ie.php

    Please help me! I will love you forever!

    Thanks guys.
    Jared

  2. #2
    Join Date
    Apr 2011
    Posts
    3
    Link went funny, try this one: http://juicenothing.com/best-albums-...no-work-ie.php

    Thanks again!

  3. #3
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    You document has no Doctype, no HTML, no HEAD and no BODY. Some of them, in different conditions, are not required, but all of them, in your case, might bring errors. The Doctype is a must.

    You have several JavaScript errors, also:

    1. swfobject is not defined
    http://juicenothing.com/best-albums-...no-work-ie.php
    Line 65

    2. handler is undefined
    http://juicenothing.com/js/jquery-1.2.6.js
    Line 1834

    3. document.getElementById("curtains") is null
    http://juicenothing.com/best-albums-...no-work-ie.php
    Line 476

    Regarding the XML, you have some empty tags <SPOTIFY></SPOTIFY>. It looks like IE consider them as absolutely empty, thus without any textNode which could be the childNodes[0]

    Instead of
    Code:
    x[i].getElementsByTagName('SPOTIFY')[0].childNodes[0].nodeValue
    you may try
    Code:
    x[i].getElementsByTagName('SPOTIFY')[0].textContent || x[i].getElementsByTagName('SPOTIFY')[0].text

  4. #4
    Join Date
    Apr 2011
    Posts
    3
    Wait a minute... are you God? That XML worked perfectly, thank you soooo much!

  5. #5
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    Quote Originally Posted by LegoTrip View Post
    Wait a minute... are you God?
    Of course not. I have simply learned XML DOM

    Standard:
    https://developer.mozilla.org/En/DOM/Node.textContent
    IE version:
    http://www.w3schools.com/dom/prop_node_text.asp

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles