whatwg/html-build

ID generation seems wrong in new build process??

Closed this issue · 2 comments

The dev edition subdfns are taking over the main IDs. See e.g. https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-fae-form-2.

Ugh, I can tell this is not going to be fun to fix.

This has almost certainly been caused by whatwg/wattsi@de9bac8 now that I look at it. We can track it here instead of moving the issue to the Wattsi repo.

In particular, because subdfns inside domintro boxes generally appear before regular dfns, they get the non-"-2" variant.

@sideshowbarker, would you be able to weigh in on ideas for cleaning up my mess there? I can try to look at it too later, but I worked too much today. Just ideas would be great, even if not full-fledged fixes.

One tricky part is that we do in fact want e.g. https://html.spec.whatwg.org/dev/multipage/history.html#dom-history-index to link to the subdfn, whereas https://html.spec.whatwg.org/multipage/history.html#dom-history-index should link to the real definition.

Yeah, will make time to look at it