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:

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

On Safari and FF the console prints


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:

The xml file is here:

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.