Skip to content

Commit

Permalink
Doc up
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Sep 3, 2015
1 parent 4cc1591 commit a830433
Show file tree
Hide file tree
Showing 2 changed files with 371 additions and 358 deletions.
5 changes: 3 additions & 2 deletions README.md
Expand Up @@ -17,7 +17,9 @@ As Plump supports XML as well as HTML, it also includes special handling for a f

(clss:select "^CDATA" (plump:parse "<foo><![CDATA[bar]]></foo>"))

CLSS attempts to be a fast engine and various parts of it have been tuned for this purpose, which limits the extensibility of CLSS a bit. However, it is still possible to f.e. programmatically construct a selector
CSS selectors in themselves also don't support XML namespaces due to the ambiguity arising with pseudo-selectors. CLSS solves this by interpreting a double colon as a name. Thus, a tag with the name of `foo:bar` is selected by `foo::bar`.

CLSS attempts to be a fast engine and various parts of it have been tuned for this purpose, which limits the extensibility of CLSS a bit. However, it is still possible to f.e. programmatically construct a selector.

Extending CLSS
--------------
Expand All @@ -28,4 +30,3 @@ Using `define-pseudo-selector` you can add your own extensions to CLSS:
(and href (cl-ppcre:scan "^(http|https)://" href))))

(clss:select "a:outside-link" (plump:parse "<foo><a href=\"/baloney\"/><a href=\"http://example.com\"/></foo>"))

0 comments on commit a830433

Please sign in to comment.