This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
level3/core/noderemovechild05 Tries to insert a new doctype into a document that already has one, resulting in a HIERARCHY_REQUEST_ERR.
Created attachment 94 [details] noderemovechild05 fix Tries to remove the existing doctype instead. I believe a further change may be required, trying to remove a doctype can also be an unsupported operation can't it?
Created attachment 166 [details] Removes existing doctype, tolerates NOT_SUPPORTED_ERR