Skip to content

Conversation

@sideshowbarker
Copy link
Member

@sideshowbarker sideshowbarker commented Dec 29, 2025

This change adds some how-to docs for the process of regenerating the element-name hash tables in the ElementName.java file — which is something you need to do when adding a new HTML element.

The docs include steps and info on:

  • How to add new element constants
  • Which code sections to uncomment for regeneration
  • How to compile and run the code generator
  • Notes on Gecko vs Java-only builds
  • How to update the generated arrays
  • Technical details about the hash function and BST structure

This change adds some how-to docs for the process of regenerating the
element-name hash tables in the ElementName.java file — which is
something you need to do when adding a new HTML element. The docs
include steps and info on:

- How to add new element constants
- Which code sections to uncomment for regeneration
- How to compile and run the code generator
- Notes on Gecko vs Java-only builds
- How to update the generated arrays
- Technical details about the hash function and BST structure
@sideshowbarker sideshowbarker force-pushed the sideshowbarker/CONTRIBUTING.md-element-name-codegen-how-to-docs branch from 7a1484f to f9a4894 Compare December 30, 2025 02:28
@sideshowbarker sideshowbarker merged commit 4276094 into master Dec 30, 2025
12 checks passed
@sideshowbarker sideshowbarker deleted the sideshowbarker/CONTRIBUTING.md-element-name-codegen-how-to-docs branch December 30, 2025 08:12
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.

2 participants