This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 7488 - "These are the only ways to make a DOM unserializable." - this is not correct so long as DOM Core allows nodes to be moved from an HTML document to an XML document without serializability checking
Summary: "These are the only ways to make a DOM unserializable." - this is not correct...
Status: CLOSED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: All All
: P3 normal
Target Milestone: LC
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://whatwg.org/specs/web-apps/curr...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-03 14:41 UTC by contributor
Modified: 2010-10-04 14:46 UTC (History)
4 users (show)

See Also:


Attachments

Description contributor 2009-09-03 14:41:28 UTC
Section: http://whatwg.org/specs/web-apps/current-work/#serializing-xhtml-fragments

Comment:
"These are the only ways to make a DOM unserializable." - this is not correct so long as DOM Core allows nodes to be moved from an HTML document to an XML document without serializability checking

Posted from: 83.252.193.59
Comment 1 Ian 'Hixie' Hickson 2009-09-22 00:32:21 UTC
Tried to fix this. Let me know if I missed any remaining cases.
Comment 2 contributor 2009-09-22 00:32:28 UTC
Checked in as WHATWG revision r3951.
Check-in comment: If you move a node from an HTML doc to an XML doc, you can create nodes with names you otherwise could not. So we have to handle that case also.
http://html5.org/tools/web-apps-tracker?from=3950&to=3951
Comment 3 Simon Pieters 2009-09-22 11:27:07 UTC
Still missing:

* A DocumentType node with a name that does not match QName.
* A DocumentType node hat has an external subset system identifier that does not match the XML Char production. ("[^...]" is subtracted from Char.)
* An Attr node with no namespace and a local name "xmlns"
* An Element node that has two (or more) Attr nodes with the same local name and namespace.
Comment 4 Simon Pieters 2009-09-23 06:19:20 UTC
(In reply to comment #3)
> * A DocumentType node with a name that does not match QName.

Strike this point. (Can't move doctypes between documents.)
Comment 5 Ian 'Hixie' Hickson 2009-09-28 19:41:27 UTC
Thanks.
Comment 6 contributor 2009-09-28 19:42:01 UTC
Checked in as WHATWG revision r4008.
Check-in comment: Add some more cases that lead to unserializable DOMs.
http://html5.org/tools/web-apps-tracker?from=4007&to=4008