Closed Bug 154908 Opened 23 years ago Closed 14 years ago

Moving content nodes between documents does not preserve uniquenes of content IDs

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: sfraser_bugs, Unassigned)

Details

If you write code that creates content nodes on document A: docA->CreateElementNS(..., &newElement); then appends them to document B: nodeInDocB->AppendChild(newElement, ..); then it's possible to get content node ID conflicts. It would seem that copying or moving nodes between documents should ensure that content IDs (gotten via GetContentID() remain unique for each document. If a node is in 2 documents at the same time, then, I guess, it would have to have an ID per document.
Content ID's are evil. If at all possible we should work on removing them in stead of making them...
QA Contact: desale → stummala
Mass-reassigning bugs to dom_bugs@netscape.com
Assignee: jst → dom_bugs
Component: DOM: Core → DOM: Core & HTML
QA Contact: stummala → general
Looks like they were removed at some point.
Assignee: general → nobody
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.