Opened 13 years ago

Last modified 6 years ago

#9628 closed defect

dojo.attr not working on IE8 for xml dom node — at Version 3

Reported by: juzzam Owned by: Eugene Lazutkin
Priority: high Milestone: 1.13
Component: HTML Version: 1.3.2
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by Eugene Lazutkin)

dojo.attr is not working for me on IE7/8 to retrieve an attribute from an xml dom node (with dojo 1.3).

I've isolated the problem to this code:

dojo.xhrGet({
  url: "/public/feed.xml",
  handleAs: "xml",
  load: function(xmldoc) {
    try{
      var entry = dojo.query("entry", xmldoc)[0];
      var linknode = dojo.query("link", entry)[0];
      var url = dojo.attr(linknode, "href");
      console.debug(url);
    } catch(e){console.debug(e);}
  }
}

On Safari and FF the console prints

"http://www.smashingmagazine.com/2009/07/29/misunderstanding-markup-xhtml-2-comic-strip/"

On IE the dojo.attr() line throws this error:

message : Wrong number of arguments or invalid property assignment,
number : -2146827838,
description : Wrong number of arguments or invalid property assignment,
name : TypeError

I have the problem isolated and hosted it here: https://juzzam.org:2121/public/attrBug.html

The xml file is here: https://juzzam.org:2121/public/feed.xml

Change History (4)

Changed 13 years ago by juzzam

Attachment: feed.xml added

comment:1 Changed 13 years ago by juzzam

Please assign to Eugene Lazutkin - elazutkin. This is my first bug submission - sorry for not opening it against him in the first place.

comment:2 Changed 13 years ago by James Burke

Owner: changed from anonymous to Eugene Lazutkin

comment:3 Changed 13 years ago by Eugene Lazutkin

Component: GeneralHTML
Description: modified (diff)
Milestone: tbdfuture
Status: newassigned
Note: See TracTickets for help on using tickets.