Here is a link to a post not too long ago with an outerHTML plugin for jQuery.
<a href="http://groups.google.com/group/jquery-en/msg/62a2e93f55119d48">
http://groups.google.com/group/jquery-en/msg/62a2e93f55119d48</a>--
Brandon Aaron
<div><span class="gmail_quote">On 6/13/07, <b class="gmail_sendername">Sean Catchpole</b> <<a href="mailto:littlecooldude@gmail.com">
littlecooldude@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Can anyone else get the outerHTML of a html object? I can't seem to
get it anymore.
document.getElementById('log').outerHTML returns undefined.
I'm using FF2.
~Sean
</blockquote></div>