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 408 - L2 namednodemapsetnameditemns03 can also raise INUSE_ATTR
Summary: L2 namednodemapsetnameditemns03 can also raise INUSE_ATTR
Status: RESOLVED FIXED
Alias: None
Product: DOM TS
Classification: Unclassified
Component: DOM Level 2 (show other bugs)
Version: unspecified
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: Philippe Le Hegaret
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-10 17:30 UTC by Andrew Clover
Modified: 2004-03-10 06:32 UTC (History)
0 users

See Also:


Attachments
namednodemapsetnameditemns03 patch (674 bytes, patch)
2003-12-10 17:32 UTC, Andrew Clover
Details
Forgot return value on removeNamedItemNS (891 bytes, patch)
2004-03-10 01:32 UTC, Curt Arnold
Details

Description Andrew Clover 2003-12-10 17:30:37 UTC
Test:

level2/core/namednodemapsetnameditemns03

attempts to add an Attr node from one document to an element in another.
However it does not first remove the attribute from the original ownerElement,
so INUSE_ATTRIBUTE_ERR is a valid response as well as the
WRONG_DOCUMENT_ERR being tested for.
Comment 1 Andrew Clover 2003-12-10 17:32:11 UTC
Created attachment 88 [details]
namednodemapsetnameditemns03 patch

Fix for namednodemapsetnameditemns03 INUSE_ATTRIBUTE_ERR issue. Removes
attribute from its parent before attempting to reuse it.

NB. Works on my Python setup, has *not* been tested with the Java TS framework.
Comment 2 Andrew Clover 2004-02-19 10:12:58 UTC
Hmm, not sure why this was RESOLVED; it is still broken in CVS as of now. Guess
the patch went astray...
Comment 3 Curt Arnold 2004-03-09 20:10:29 UTC
Hopefully really fixed this time.
Comment 4 Curt Arnold 2004-03-10 01:32:49 UTC
Created attachment 292 [details]
Forgot return value on removeNamedItemNS