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!
var s = new XMLSerializer();
var d = document;
var str = s.serializeToString(d);
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:
should work, as long as it is hidden, it shouldn't take that long.
but use the spankin new serializer if you can.