[Bug 3968] Elements with duplicate IDs

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3968





------- Comment #1 from ht@inf.ed.ac.uk  2006-11-10 09:31 -------
No harm, no foul.  The guarantee ID provides is that no ID is attached to two
distinct items.  In SGML and XML, there was also a declaration constraint which
prevented items from having two IDs, but we explicitly did _not_ reconstruct
this constraint except for attributes, although both parts 1 and 2 both suggest
not using ID for the type of elements.

The example schema given makes it possible for an element to have multiple IDs,
but then the instance doesn't exploit this.  In my view the resulting ID/IDREF
table is correct -- one entry, with one binding, i.e. 'abc' bound to the doc.
element.

And I think the spec. correctly specifies that in case of an instance such as

 <e><id1>abc</id1><id2>xyz</id2></e>

there will be _two_ entries in the ID/IDREF table, one binding 'abc' to the
doc. elt and one binding 'xyz' to it.  Your gun, your foot, your bullet.

In other words, no bug, no change required.

Received on Friday, 10 November 2006 09:31:42 UTC