I realize that the project is still new and that it might be too soon to fight for consensus on this controversial topic but any delay in discussing this will only increase the clean up work in future.
Current style guide, only provides style guidelines for the wiki and not for the code itself.
This is actually something that was started a while ago but the talk just died out around it. A few pages for it are:
Albeit the HTML has nothing in it. We should improve those two as needed and then create new guidelines for other languages.
There's also some information in this topic:
It's purposefully vague, but it's something to use either as a reference or a starting point (or a point of departure).
Thanks, I will see if I can contribute there.
I think you linked to this bug itself.
Oops. Sorry about that. The page lives at http://docs.webplatform.org/wiki/WPD:Manual_Of_Style/Sample_best_practices
It's still purposefully vague.