Opened 13 years ago

Last modified 6 years ago

#9628 closed defect

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

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

Description

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 (1)

Changed 13 years ago by juzzam

Attachment: feed.xml added
Note: See TracTickets for help on using tickets.