You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ah, this is because DOM actually defines this reference, with for=Document, but the anchor-block defines it with for=document. So the two autolinks resolve to different references (so no deduping), but the two references are identical (so the generated ID ends up being identical).
Indeed, and this is actually nice because I've been wondering how to help authors identify anchor-block refs they can remove. This problem suggests that I can just use similar code to what I have for generating IDs to identify "unnecessary" anchors. Not trivial, but easier than what I was imagining I'd have to do.
Closely related issue: if you add an anchor-block entry for a ref that already exists, but use a different spec name for it, you'll end up with two entries in your Index that also have identical generated IDs.
Example document:
Giving a "duplicated ID" warning, because it generates two identical entries in the index.
The text was updated successfully, but these errors were encountered: