This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Right now no state is copied when a Document is cloned. Should we copy any of the following? - Base URL - Compat mode Anything else?
Testing in Gecko shows we copy URL/baseURI/compatMode/contentType/characterSet. Not entirely clear to me how much of that is desirable. Olli?
I suspect we copy XMLness too. Haven't tested.
Yes, XMLness/SVGness/HTMLness. We probably want URL if base URL is copied, and we probably want base URL to be correct so that various urls in the clone tree are correct. compatMode yes, since it seems to affect to innerHTML behavior and it would be odd if the clone would have different behavior than the original http://mxr.mozilla.org/mozilla-central/source/content/base/public/nsContentUtils.h?rev=82d3b49ce0df&mark=1137-1137,1149-1149#1130 Not sure whether contentType or characterSet matter much.
If you care about how APIs behave (e.g. for parsing links characterSet matters), they would matter.
https://github.com/whatwg/dom/commit/3872ac3494ab4be8b9769ee831c45159235f9507 http://lists.w3.org/Archives/Public/www-dom/2013JulSep/thread.html#msg127 is about the base URL aspect.