<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>22897</bug_id>
          
          <creation_ts>2013-08-07 21:49:14 +0000</creation_ts>
          <short_desc>What state needs to be cloned when a Document is cloned?</short_desc>
          <delta_ts>2013-08-09 13:37:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>DOM</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Erik Arvidsson">erik.arvidsson</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>bugs</cc>
    
    <cc>hsivonen</cc>
    
    <cc>mike</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>91756</commentid>
    <comment_count>0</comment_count>
    <who name="Erik Arvidsson">erik.arvidsson</who>
    <bug_when>2013-08-07 21:49:14 +0000</bug_when>
    <thetext>Right now no state is copied when a Document is cloned. Should we copy any of the following?

- Base URL
- Compat mode

Anything else?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91787</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-08-08 10:29:46 +0000</bug_when>
    <thetext>Testing in Gecko shows we copy URL/baseURI/compatMode/contentType/characterSet. Not entirely clear to me how much of that is desirable. Olli?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91788</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-08-08 10:30:27 +0000</bug_when>
    <thetext>I suspect we copy XMLness too. Haven&apos;t tested.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91790</commentid>
    <comment_count>3</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2013-08-08 13:10:39 +0000</bug_when>
    <thetext>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&amp;mark=1137-1137,1149-1149#1130

Not sure whether contentType or characterSet matter much.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91791</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-08-08 13:12:55 +0000</bug_when>
    <thetext>If you care about how APIs behave (e.g. for parsing links characterSet matters), they would matter.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91834</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-08-09 13:37:28 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>