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/nodeinsertbefore10 The test tries to insert an element into Document but the refChild argument is not a child of Document. Therefore NOT_FOUND_ERR is as valid a response as HIERARCHY_REQUEST_ERR. We could change it to get the first element instead of the second, but then this would be no different than using document.documentElement, which nodeinsertbefore06 already does.
In addition, a NOT_SUPPORTED_ERR could also be raised. nodeinsertbefore10 and nodeinsertbefore06 will be modified.
Created attachment 139 [details] Changes to nodeinsertbefore05, 06 and 10 Requires fail statement introduced in bug 445