Skip to content

fix(core/link-to-dfn): incorporate data-dfn-for into generated IDs#5283

Draft
marcoscaceres wants to merge 1 commit into
mainfrom
fix/4415-dfn-for-id
Draft

fix(core/link-to-dfn): incorporate data-dfn-for into generated IDs#5283
marcoscaceres wants to merge 1 commit into
mainfrom
fix/4415-dfn-for-id

Conversation

@marcoscaceres
Copy link
Copy Markdown
Contributor

Closes #4415

Include the data-dfn-for context in generated IDs to produce
meaningful names instead of numeric suffixes when multiple dfns
share the same text.

When a dfn has a data-dfn-for attribute, include the for-context in
the generated ID. This produces semantically meaningful IDs like
dfn-wall-clock-unsafe-current-time instead of dfn-unsafe-current-time-0
when multiple dfns share the same text but target different interfaces.

Closes #4415
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple dfns with same text but different data-dfn-fors number their ids

1 participant