I was looking through gmail's source code in chrome and noticed that some elements have:
<div class="TO" id=":6e">stuff</div>
<div class="TO" id=":6f">other stuff</div>
I've never seen the use of ":" inside the ID. What's that for?
I was looking through gmail's source code in chrome and noticed that some elements have:
<div class="TO" id=":6e">stuff</div>
<div class="TO" id=":6f">other stuff</div>
I've never seen the use of ":" inside the ID. What's that for?
They're just (valid) id's.
There are no other restrictions on what form an ID can take; in particular, IDs can consist of just digits, start with a digit, start with an underscore, consist of just punctuation, etc.
http://www.w3.org/html/wg/drafts/html/master/dom.html#the-id-attribute
This is a guess - but aside from the benefits of heavy minimizing and obfuscating that Google does, it also just happens to be a good anti-adblock tactic. If you're an avid fan of AdBlock, it's very hard to uniquely isolate an html element if the ids and classes are effectively random.