Skip to content

Instantly share code, notes, and snippets.

@gunnarbittersmann
Created October 11, 2012 22:27
Show Gist options
  • Select an option

  • Save gunnarbittersmann/3875931 to your computer and use it in GitHub Desktop.

Select an option

Save gunnarbittersmann/3875931 to your computer and use it in GitHub Desktop.
unescaped vs. escaped id and class selectors
/**
* unescaped vs. escaped id and class selectors
*/
div
{
background: red;
display: inline-block;
height: 10em;
width: 10em;
padding: 1em;
}
#0 { background: green }
.0 { background: green }
#\31 { background: green }
.\31 { background: green }
<div id="0">unescaped id selector</div>
<div class ="0">unescaped class selector</div>
<div id="1">escaped id selector</div>
<div class="1">escaped class selector</div>
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment