1

I have come across a weird selector that is working fine however I don't understand how it is working. All I did was perform a "Copy Selector" using chrome debugging options and it provided me with the selector given below. Could you let me know what does that mean? Its something that I haven't come across.

The HTML markup is:

<ul id="633456">
<li>
<a>A link</a>
<div>
...
</div>
</li>
</ul>

CSS Selector from Chrome debugging tools:

#\36 33456 > li > div { /* Not sure what #\36 33456 means */
...
}

Please let me know how this works. I have created a JSFiddle as well.

Cheers.

Neophile
  • 5,660
  • 14
  • 61
  • 107

1 Answers1

0

Once Paulie_D told me its to do with escaping the ID as it cannot start with a number, a bit of googling gave me the right answer.

https://css-tricks.com/ids-cannot-start-with-a-number/

Which is why the ID: 633456 is written as: #\36 33456

Thanks.

Neophile
  • 5,660
  • 14
  • 61
  • 107
  • Please close-vote as duplicate instead of providing yet another answer to the same question. –  Jul 27 '16 at 11:46