This repository was archived by the owner on Jan 26, 2026. It is now read-only.
Commit 2f6766d
committed
valid: Restore ID lookup
Revert a change from d025cfb 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.1 parent fc3c432 commit 2f6766d
4 files changed
Lines changed: 8 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1255 | 1255 | | |
1256 | 1256 | | |
1257 | 1257 | | |
| 1258 | + | |
1258 | 1259 | | |
1259 | 1260 | | |
1260 | 1261 | | |
| |||
1987 | 1988 | | |
1988 | 1989 | | |
1989 | 1990 | | |
| 1991 | + | |
1990 | 1992 | | |
1991 | 1993 | | |
1992 | 1994 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4059 | 4059 | | |
4060 | 4060 | | |
4061 | 4061 | | |
4062 | | - | |
4063 | 4062 | | |
4064 | 4063 | | |
4065 | 4064 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2336 | 2336 | | |
2337 | 2337 | | |
2338 | 2338 | | |
2339 | | - | |
2340 | | - | |
2341 | | - | |
2342 | 2339 | | |
2343 | 2340 | | |
2344 | 2341 | | |
| |||
2349 | 2346 | | |
2350 | 2347 | | |
2351 | 2348 | | |
2352 | | - | |
2353 | | - | |
2354 | | - | |
2355 | | - | |
2356 | | - | |
2357 | | - | |
2358 | | - | |
2359 | | - | |
| 2349 | + | |
| 2350 | + | |
2360 | 2351 | | |
2361 | 2352 | | |
2362 | 2353 | | |
| |||
2374 | 2365 | | |
2375 | 2366 | | |
2376 | 2367 | | |
| 2368 | + | |
| 2369 | + | |
| 2370 | + | |
2377 | 2371 | | |
2378 | 2372 | | |
2379 | 2373 | | |
| |||
2383 | 2377 | | |
2384 | 2378 | | |
2385 | 2379 | | |
2386 | | - | |
2387 | 2380 | | |
2388 | 2381 | | |
2389 | 2382 | | |
| |||
0 commit comments