<?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>120425</bug_id>
          
          <creation_ts>2013-08-28 10:49:20 -0700</creation_ts>
          <short_desc>[DOM4] Doctypes now always have a node document and can be moved across document boundaries</short_desc>
          <delta_ts>2013-08-28 11:50:09 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>99244</dup_id>
          
          <bug_file_loc>http://dom.spec.whatwg.org/#dom-domimplementation-createdocumenttype</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BlinkMergeCandidate, WebExposed</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Dumez">cdumez</reporter>
          <assigned_to name="Chris Dumez">cdumez</assigned_to>
          <cc>ap</cc>
    
    <cc>darin</cc>
    
    <cc>eoconnor</cc>
    
    <cc>kling</cc>
    
    <cc>rniwa</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>922096</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2013-08-28 10:49:20 -0700</bug_when>
    <thetext>Consider merging the following patch from Blink:

Doctypes now always have a node document and can be moved across document boundaries as per
the latest DOM4 specification:
http://dom.spec.whatwg.org/#dom-domimplementation-createdocumenttype
http://dom.spec.whatwg.org/#dom-node-ownerdocument

This means that DOMImplementation.createDocumentType() now sets the ownerDocument of the
new DocumentType Node to the associated document of the current &quot;context&quot; object. In
DOM4, all nodes have a document at all times. DocumentType nodes can now be moved across
document boundaries so that the node can be added to a Document after being created.

Firefox stable and since recently Blink already follow DOM4 here while IE10 does not (yet).

Blink revision:
https://src.chromium.org/viewvc/blink?revision=156581&amp;view=revision</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>922103</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2013-08-28 10:56:46 -0700</bug_when>
    <thetext>It seems sensible to match the spec.  I don&apos;t think there is any compatibility issue with this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>922121</commentid>
    <comment_count>2</comment_count>
    <who name="Theresa O&apos;Connor">eoconnor</who>
    <bug_when>2013-08-28 11:26:30 -0700</bug_when>
    <thetext>SGTM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>922133</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-08-28 11:50:09 -0700</bug_when>
    <thetext>This is just crazy.

*** This bug has been marked as a duplicate of bug 99244 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>