Changes between Initial Version and Version 3 of Ticket #9628


Ignore:
Timestamp:
Jul 30, 2009, 6:50:29 PM (11 years ago)
Author:
Eugene Lazutkin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9628

    • Property Owner changed from anonymous to Eugene Lazutkin
    • Property Status changed from new to assigned
    • Property Component changed from General to HTML
    • Property Milestone changed from tbd to future
  • Ticket #9628 – Description

    initial v3  
    33I've isolated the problem to this code:
    44
    5             dojo.xhrGet({
    6                 url: "/public/feed.xml",
    7                 handleAs: "xml",
    8                 load: function(xmldoc) { try{
    9                            
    10                         var entry = dojo.query("entry", xmldoc)[0];
    11                         var linknode = dojo.query("link", entry)[0];
    12                         var url = dojo.attr(linknode, "href");
    13                         console.debug(url);
    14                            
    15                     } catch(e){console.debug(e);}
    16                 }
    17             }
     5{{{
     6#!js
     7dojo.xhrGet({
     8  url: "/public/feed.xml",
     9  handleAs: "xml",
     10  load: function(xmldoc) {
     11    try{
     12      var entry = dojo.query("entry", xmldoc)[0];
     13      var linknode = dojo.query("link", entry)[0];
     14      var url = dojo.attr(linknode, "href");
     15      console.debug(url);
     16    } catch(e){console.debug(e);}
     17  }
     18}
     19}}}
    1820
    19 On Safari and FF the console prints "http://www.smashingmagazine.com/2009/07/29/misunderstanding-markup-xhtml-2-comic-strip/"
     21On Safari and FF the console prints
     22
     23{{{
     24"http://www.smashingmagazine.com/2009/07/29/misunderstanding-markup-xhtml-2-comic-strip/"
     25}}}
    2026
    2127On IE the dojo.attr() line throws this error:
    22      message : Wrong number of arguments or invalid property assignment,
    23      number : -2146827838,
    24      description : Wrong number of arguments or invalid property assignment,
    25      name : TypeError
     28{{{
     29message : Wrong number of arguments or invalid property assignment,
     30number : -2146827838,
     31description : Wrong number of arguments or invalid property assignment,
     32name : TypeError
     33}}}
    2634
    2735I have the problem isolated and hosted it here: https://juzzam.org:2121/public/attrBug.html