I would call this a bug, actually.

At 10:33 AM 8/23/2005, Owen Rogers wrote:
just noticed that the html() and outerhtml() methods return
getDocument().body.outerHTML.  this returns only the html for the body
section, not for the entire page, which i'm inferring from the
comments, is the correct behaviour.
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.
cheers,
owen.
--
Owen Rogers | http://dotnetjunkies.com/weblog/exortech |
CruiseControl.NET - http://ccnet.thoughtworks.com

_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

_____________________
 Bret Pettichord
 www.pettichord.com

_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to