Thanks for your informative replies on this and other threads. In a related note, how do you recommend getting the actual, un-parsed, bytes for the current document being displayed by the nsIWebBrowser?
I don't believe we have an API that really allows this to be done cleanly at the moment... We're working on getting to the point where nsIWebBrowserPersist will let you do this.
Note that if you do what the view-source window does in Mozilla to load Mozilla's built-in view-source into a display:none docshell or something and then grab the text out of that, it'll be about what you want (though characters, not bytes, and not as fast as just getting the bytes). This preserves whitespace, all sorts of malformed stuff, etc.
-Boris _______________________________________________ mozilla-embedding mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-embedding
