mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-10-26 12:25:09 +03:00
842a044831
Revert a change from d025cfbb
and don't overwrite ID table entries, so
that the first attribute will be returned if there are duplicate IDs.
This requires two other changes:
- Attributes in entity content are never added to the ID table. This
seems reasonable.
- Remove the optimization to skip ID lookup when copying and the target
document has an empty ID table. This also seems more correct since the
document could have ID declarations nevertheless or we could be
copying xml:ids into the document for the first time.
Fixes #757.
7 lines
108 B
XML
7 lines
108 B
XML
Object is a Node Set :
|
|
Set contains 1 nodes:
|
|
1 ELEMENT foo
|
|
ATTRIBUTE id
|
|
TEXT
|
|
content=bar
|