[Editorial] "state" keywords have inconsistent casing
What is the issue with the HTML Standard?
Some states, such as input's type and img's loading are title case. Many others are not.
I'm filing this issue to track work to change all states to be title case.
How would someone contribute to this issue?
- You can fork and clone the HTML spec:
git clone [email protected]:<your-username>/html - Edit the
sourcefile in your favourite editor. - Look for "states" in lowercase, you can find all instances with this shell command:
grep 'attr-.*-state">[a-z]' source. - Pick one to zero in on, for example
attr-translate-yes-state&attr-translate-no-stateare both (at the time of writing) not in title case. - In your editor search for all instances of your chosen attributes, and reformat them to be title case: the first letter and subsequent "proper nouns" should have be in upper case, all verbs and common nouns need to be in lower case.
- Commit your changes with a sensible message: "git commit -am'editorial: use title case for
` - Push your changes to your fork;
git push - Raise a pull request and make the title of the PR match your commit message.
Somewhat of a dupe of https://github.com/whatwg/html/issues/9832#issuecomment-1884072078, but a dedicated tracking issue is reasonable.
Yeah, and it has come up in reviews since then. FWIW, I have come around to Title Case for these. It sets them clearly apart from the keywords and other concepts.
The issue is solved in the PR #11027
the issue is solved in the PR #11179
like do i need to replace "state" with "State"??
@VaibhavDangaich no that should not be necessary.