> At 10:33 AM 8/23/2005, Owen Rogers wrote: > >to get the html for the entire page, i've found that > >getDocument().firstChild.outerHTML does the trick, though there might > >be a better way to get the document root element.
On 23/08/05, Bret Pettichord <[EMAIL PROTECTED]> wrote: > I would call this a bug, actually. incidentally, contrary to what i thought, getDocument().firstChild.outerHTML doesn't work in all cases. if the document is not single-rooted the firstChild could be anything. if it's xml then you'll end up with the xml processing instruction. there must be an appropriate object in the DOM, but i haven't figured out yet what it is. cheers, owen. -- Owen Rogers | http://dotnetjunkies.com/weblog/exortech | CruiseControl.NET - http://ccnet.thoughtworks.com _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
