Skip to content

fix(core/utils): register unquoted form for quoted enum-value dfns - #5291

Draft
marcoscaceres wants to merge 1 commit into
mainfrom
fix/4615-quoted-enum-value-dfn
Draft

fix(core/utils): register unquoted form for quoted enum-value dfns#5291
marcoscaceres wants to merge 1 commit into
mainfrom
fix/4615-quoted-enum-value-dfn

Conversation

@marcoscaceres

@marcoscaceres marcoscaceres commented May 10, 2026

Copy link
Copy Markdown
Contributor

Closes #4615

Written with AI: this change was generated by Claude. Per AI_POLICY.md.

Authors sometimes write <dfn data-dfn-type="enum-value">"value"</dfn>
with surrounding quotes to mirror WebIDL syntax. getDfnTitles() now
also registers the unquoted form so webidl.js lookup and inline
{{ EnumType/"value" }} refs can resolve to the user-provided dfn
instead of auto-generating a duplicate.

Closes #4615
@marcoscaceres marcoscaceres added the AI Contains AI-generated logic; see AI_POLICY.md label Aug 5, 2026
<pre class="idl">
enum QuotedEnum {
"alpha",
"beta with spaces"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although this is legal, this should warn, and is strongly discouraged by the IDL spec.

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

Labels

AI Contains AI-generated logic; see AI_POLICY.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Defining quoted enum values should be supported

1 participant