Skip to content

Conversation

domenic
Copy link
Member

@domenic domenic commented Sep 10, 2025

This adds a postprocess step, written in Rust. It looks for <script type="text/required-ids"> elements listing all the required IDs, and errors out if those IDs are not found. (This cannot be done at preprocess time as many IDs are generated by Wattsi, e.g., from data-x="" attributes or from the TOC generation.)

Closes #304.

This adds a postprocess step, written in Rust. It looks for `<script type="text/required-ids">` elements listing all the required IDs, and errors out if those IDs are not found. (This cannot be done at preprocess time as many IDs are generated by Wattsi, e.g., from data-x="" attributes or from the TOC generation.)

Closes #304.
domenic added a commit to whatwg/html that referenced this pull request Sep 10, 2025
Copy link
Member

@sideshowbarker sideshowbarker left a comment

Choose a reason for hiding this comment

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

Code-reviewed and smoke tested

@domenic domenic merged commit 9aa4286 into main Sep 11, 2025
2 checks passed
@domenic domenic deleted the permanent-anchors branch September 11, 2025 00:41
domenic added a commit to whatwg/html that referenced this pull request Sep 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Add permanent anchor/required IDs support
2 participants