Hi all, 

I have a problem in IE. My server returns these lines of XML:

<?xml version="1.0" ?>
<webride accountId="101">
  <status code="OK" />
  <data>
    <relation like="0"></relation>
  </data>
</webride>

I make a simple call like this to get them:

  $('relation').load('/relation/get/?foo=bar', callbackHandler);

In callbackHandler, I do this:

  function callbackHandler(xml) {
    var relationTag = $('relation', xml);
    var thisLineCausesTheError = $('paths path', relationTag); // <= ERROR!
    ...
  }

IE throws a runtime error and using Microsoft Script Debugger, I am pointed to 
jquery.js, line 36 (Rev 288):

  // Handle HTML strings
  var m = /^[^<]*(<.+>)[^>]*$/.exec(a);

The error message itself, lousily translated from german IE: "Error: object 
does not support attribute or method"

Firefox does it all perfectly, Opera too. Any idea, what the reason for this 
could be? 
(Well, I know that no "paths path" exists in the returned XML, but it should 
not throw an exception anyway, right?)

Cheers, Arash


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to