html icon indicating copy to clipboard operation
html copied to clipboard

[Editorial] "state" keywords have inconsistent casing

Open keithamus opened this issue 2 years ago • 6 comments

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?

  1. You can fork and clone the HTML spec: git clone [email protected]:<your-username>/html
  2. Edit the source file in your favourite editor.
  3. Look for "states" in lowercase, you can find all instances with this shell command: grep 'attr-.*-state">[a-z]' source.
  4. Pick one to zero in on, for example attr-translate-yes-state & attr-translate-no-state are both (at the time of writing) not in title case.
  5. 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.
  6. Commit your changes with a sensible message: "git commit -am'editorial: use title case for `
  7. Push your changes to your fork; git push
  8. Raise a pull request and make the title of the PR match your commit message.

keithamus avatar Nov 27 '24 10:11 keithamus

Somewhat of a dupe of https://github.com/whatwg/html/issues/9832#issuecomment-1884072078, but a dedicated tracking issue is reasonable.

domenic avatar Nov 28 '24 02:11 domenic

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.

annevk avatar Nov 28 '24 07:11 annevk

The issue is solved in the PR #11027

HarshitGourlariya avatar Feb 15 '25 15:02 HarshitGourlariya

the issue is solved in the PR #11179

choukikars16 avatar Apr 03 '25 11:04 choukikars16

like do i need to replace "state" with "State"??

VaibhavDangaich avatar Apr 22 '25 10:04 VaibhavDangaich

@VaibhavDangaich no that should not be necessary.

keithamus avatar Apr 22 '25 12:04 keithamus