Skip to content
Browse files

improved readme

  • Loading branch information...
1 parent 94356ad commit 602be84cdeff6110991e0d41a68e719319b94b36 @nubis committed Jan 1, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 README.md
View
9 README.md
@@ -5,12 +5,19 @@ you get back a list of fragments of the html that match that query.
Only a subset of the spec is supported, full CSS3 support is planned.
For now you can select:
+
* By tag name: /table td a/
+
* By class names: /.container .content/
+
* By Id: /#oneId/
+
* By attribute: /[hasIt]/, /[exact=match]/, /[contains*=text]/, /[starts^=with]/, /[ends$=with]/
+
* Union: /a, span, p/
+
* Immediate children: /div > p/
+
* Get jiggy with it: /div[data-attr=yeah] > .mon, .foo.bar div, #oneThing/
This module was initially thought as part of my web application testing library,
@@ -57,5 +64,7 @@ main = do
And your result would be:
+```haskell
["<a class=\"foo big\">one</a>", "<a class=\"big bar\">Second</a>", "<h1>Hello</h1>"]
+```

0 comments on commit 602be84

Please sign in to comment.
Something went wrong with that request. Please try again.