Permalink
Browse files

Add comments so that the "Acceptable selectors" section is valid CSS …

…code
  • Loading branch information...
1 parent bf5384c commit eb94101acd98ef147509fa9f7a20c1a526d2cbde @remiprev remiprev committed Apr 13, 2012
Showing with 24 additions and 24 deletions.
  1. +24 −24 README.md
View
@@ -5,32 +5,32 @@ Qwery is a small *blazing fast* query selector engine allowing you to select ele
##Acceptable selectors
``` css
-basic
-#foo {} id
-.bar {} class
-a#foo.bar {} element attribute combinations
-
-attributes
-#foo a[href] {} simple
-#foo a[href=bar] {} attribute values
-#foo a[lang|=en] {} subcodes
-#foo a[title~=hello] {} attribute contains
-#foo a[href^="http://"] {} attribute starts with
-#foo a[href$=com] {} attribute ends with
-#foo a[href*=twitter] {} attribute wildcards
-
-descendants
-#foo a {} all descendants
-ul#list > li {} direct children
-
-siblings
-span ~ strong {} all adjacent
-p + p {} immediate adjacent
-
-combos
+/* basic */
+#foo {} /* id */
+.bar {} /* class */
+a#foo.bar {} /* element attribute combinations */
+
+/* attributes */
+#foo a[href] {} /* simple */
+#foo a[href=bar] {} /* attribute values */
+#foo a[lang|=en] {} /* subcodes */
+#foo a[title~=hello] {} /* attribute contains */
+#foo a[href^="http://"] {} /* attribute starts with */
+#foo a[href$=com] {} /* attribute ends with */
+#foo a[href*=twitter] /* {} attribute wildcards */
+
+/* descendants */
+#foo a {} /* all descendants */
+ul#list > li {} /* direct children */
+
+/* siblings */
+span ~ strong {} /* all adjacent */
+p + p {} /* immediate adjacent */
+
+/* combos */
div,p {}
-variations
+/* variations */
#foo.bar.baz {}
div#baz.thunk a[-data-info*="hello world"] span + strong {}
#thunk[title$='huzza'] {}

0 comments on commit eb94101

Please sign in to comment.