Bug 120425
| Summary: | [DOM4] Doctypes now always have a node document and can be moved across document boundaries | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> |
| Component: | WebCore Misc. | Assignee: | Chris Dumez <cdumez> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | ap, darin, eoconnor, kling, rniwa, sam |
| Priority: | P2 | Keywords: | BlinkMergeCandidate, WebExposed |
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | http://dom.spec.whatwg.org/#dom-domimplementation-createdocumenttype | ||
Chris Dumez
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 "context" 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&view=revision
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Ryosuke Niwa
It seems sensible to match the spec. I don't think there is any compatibility issue with this.
Theresa O'Connor
SGTM.
Alexey Proskuryakov
This is just crazy.
*** This bug has been marked as a duplicate of bug 99244 ***