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 5946 - execCommand('insertHTML') should throw in xml
Summary: execCommand('insertHTML') should throw in xml
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
Depends on:
Reported: 2008-08-10 22:57 UTC by Simon Pieters
Modified: 2010-10-04 14:49 UTC (History)
3 users (show)

See Also:


Description Simon Pieters 2008-08-10 22:57:29 UTC
"Note: These are the only ways to make a DOM unserializable." is false given execCommand('insertHTML'). For consistency insertHTML should throw in XML.
Comment 1 Ian 'Hixie' Hickson 2008-08-11 23:39:28 UTC
Changed, but, what about parsing an HTML document and importing a node that one couldn't create in an XML DOM? Do we define that to fail anywhere?
Comment 2 Simon Pieters 2008-08-12 07:46:07 UTC
No but it's on my list for DOM5.