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 415 - nodeinsertbefore10 can raise NOT_FOUND
Summary: nodeinsertbefore10 can raise NOT_FOUND
Status: RESOLVED FIXED
Alias: None
Product: DOM TS
Classification: Unclassified
Component: DOM Level 3 (show other bugs)
Version: unspecified
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: Curt Arnold
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-12 14:42 UTC by Andrew Clover
Modified: 2003-12-23 03:28 UTC (History)
0 users

See Also:


Attachments
Changes to nodeinsertbefore05, 06 and 10 (4.24 KB, patch)
2003-12-22 22:17 UTC, Curt Arnold
Details

Description Andrew Clover 2003-12-12 14:42:39 UTC
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.
Comment 1 Curt Arnold 2003-12-22 17:43:19 UTC
In addition, a NOT_SUPPORTED_ERR could also be raised.  nodeinsertbefore10 and 
nodeinsertbefore06 will be modified.
Comment 2 Curt Arnold 2003-12-22 22:17:16 UTC
Created attachment 139 [details]
Changes to nodeinsertbefore05, 06 and 10

Requires fail statement introduced in bug 445