Skip to content

fix(core/title): detect id="title" collision and use fallback#5285

Draft
marcoscaceres wants to merge 1 commit into
mainfrom
fix/4712-title-id-collision
Draft

fix(core/title): detect id="title" collision and use fallback#5285
marcoscaceres wants to merge 1 commit into
mainfrom
fix/4712-title-id-collision

Conversation

@marcoscaceres
Copy link
Copy Markdown
Contributor

Closes #4712

When another element already uses id="title", emit an error and
fall back to id="document-title" for the h1.

When another element already uses id="title", the spec's h1 now gets
id="document-title" instead of silently creating a duplicate ID. An
error is shown identifying the conflicting element.

Closes #4712
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.

More flexible title id generation

1 participant