Hi,

> Expected Result: The <div> element should be append by a <span>Test</span>
> element. Firefox: OK
> IE 6: not OK (the Ajax request will return an error). The error is produced
> in the .append command.

Your span Element belongs to another DOM-document than your div. In that case 
jQuery should clone the Node and append the clone. Firefox silently changes 
the ownerDocument for the clone when it is appended, IE doesn't. IE finds out 
that the node belongs to another document and fails. The solution could be to 
use importNode() if IE would support it - it doesn't.

The only Way I found to handle that problem would be:

$.get("test.xml", function(xml) {
  var bar = $("bar", xml);
  var content = '';
  content.each(function() {
    content += $(this).html();
  });
  $(".test").html(content);
});

I am not shure if that works in your case, but you might whant to try.

Christof

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

Reply via email to