Quote:
Originally Posted by liorean
Sadly, there is to my knowledge no easy to use parser for HTML that generates an HTMLDocument object. DOMParser requires well formed XML for instance, and ...
|
cheer up, and turn it into valid XML!
//ff2 only
var s = new XMLSerializer();
var d = document;
var str = s.serializeToString(d);
alert(str);
instead of d, you can feed it your responseBody.
you can also create a hidden div, and set the innerHTML to the responseText.
then something like:
var newLinks=hiddenDiv.getElementsByTagName("a");
should work, as long as it is hidden, it shouldn't take that long.
but use the spankin new serializer if you can.