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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>44639</bug_id>
          
          <creation_ts>2010-08-25 15:14:07 -0700</creation_ts>
          <short_desc>should be able to move a node from one document to another without calling adoptNode</short_desc>
          <delta_ts>2010-08-27 18:34:37 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>19524</dup_id>
          
          <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="Ojan Vafai">ojan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>ap</cc>
    
    <cc>arv</cc>
    
    <cc>darin</cc>
    
    <cc>eric</cc>
    
    <cc>hyatt</cc>
    
    <cc>mitz</cc>
    
    <cc>mjs</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>269536</commentid>
    <comment_count>0</comment_count>
      <attachid>65480</attachid>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2010-08-25 15:14:07 -0700</bug_when>
    <thetext>Created attachment 65480
test case

You can do it now using adoptNode, but there&apos;s not reason we shouldn&apos;t allow a node to move from one document to another via appendChild. Firefox already allows this and it seems unlikely to me that there is code that depends on throwing an error here.

Needing to worry about what document a node is coming from makes multi-document code considerably more complicated (e.g. needs to pass document objects around).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>270874</commentid>
    <comment_count>1</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2010-08-27 18:34:37 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 19524 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>65480</attachid>
            <date>2010-08-25 15:14:07 -0700</date>
            <delta_ts>2010-08-25 15:14:07 -0700</delta_ts>
            <desc>test case</desc>
            <filename>scratch.html</filename>
            <type>text/html</type>
            <size>308</size>
            <attacher name="Ojan Vafai">ojan</attacher>
            
              <data encoding="base64">PHNjcmlwdD4KZnVuY3Rpb24gaGFuZGxlTG9hZCgpIHsKICAgIHZhciBub2RlID0gZG9jdW1lbnQu
Y3JlYXRlRWxlbWVudCgnc3BhbicpOwogICAgbm9kZS5pbm5lckhUTUwgPSAiVGhpcyBub2RlIGlz
IGZyb20gdGhlIHBhcmVudCBkb2N1bWVudC4iOwogICAgZG9jdW1lbnQuYm9keS5hcHBlbmRDaGls
ZChub2RlKTsKICAgIGRvY3VtZW50LnF1ZXJ5U2VsZWN0b3IoJ2lmcmFtZScpLmNvbnRlbnREb2N1
bWVudC5ib2R5LmFwcGVuZENoaWxkKG5vZGUpOwp9Cjwvc2NyaXB0Pgo8aWZyYW1lIG9ubG9hZD0i
aGFuZGxlTG9hZCgpIj48L2lmcmFtZT4=
</data>

          </attachment>
      

    </bug>

</bugzilla>