Gecko bug: https://bugzilla.mozilla.org/show_bug.cgi?id=500937
The proposed patch there and (based on black-box testing) WebKit solve the issue by running the HTML serialization algorithm when the owner document of the input node is an HTML document.
This should probably be in a spec somewhere. -- Henri Sivonen hsivo...@iki.fi http://hsivonen.iki.fi/