A few days ago Dave over at the WebGraphics blog posted about how to parse a string into a DOM tree for Safari. I commented “How about implementing the DOMParser object in js?” and before I knew it I did it myself and adding IE compatibility on the way: if (typeof DOMParser == "undefined") { DOMParser = function () {} DOMParser.prototype.parseFromString = function (str, contentType) { if (typeof A