Good afternoon!
Together with @MichaelHamann we found out a small gap in the definitiion of our HTML codestyle. We could not find a practice regarding conventions used for IDs and classes in HTML. To see an example where such a gap could let our code quality decrease, see this PR. As far as I know, we already have an unspoken convention. I think this is something we should write down in the codestyle to ensure more consistency in our codebase and a better quality on the long term:
###Start of the proposal###
Section HTML codestyle
→
- Use kebab-case for values in the
class
of nodes- Use camelCase for
id
values of nodes
###End of the proposal###
Here are links towards examples of the id and class attribute values in the codebase as of today:
Do you agree with this proposal? Should we also add a convention for another attribute I forgot to take into consideration here? Is there another place in the doc that we should update to highlight this codestyle?
Thank you for your interest in this proposal,
Lucas C.