Does it depend on the platform you are using, or is there a common convention that most developers suggest/follow?
There are several options:
id="someIdentifier"'
– looks pretty consistent with javascript code.id="some-identifier"
– looks more like html5-like attributes and other things in html.id="some_identifier"
– looks pretty consistent with ruby code and is still a valid identifier inside of Javascript
I was thinking #1 and #3 above make the most sense because they play nicer with Javascript.
Is there a right answer to this?