css-selectors

API Reference

css-selectors

An implementation of css selectors

CSS-SELECTORS

  • Function PARSE-RESULTS (&optional (inp "#foo, .foo #bar .bast, .foo > bar[src~=blech], .foo:hover"))
    Mostly used for debugging purposes Takes a string CSS selector and turns it into an AST
  • Function COMPILE-CSS-NODE-MATCHER (inp)
    Given a string, returns a matcher-function of a single node that will tell you whether or not the node matches
  • Function NODE-MATCHES? (node inp)
    Given a node and a CSS selector, see if the given node matches that selector
  • Function QUERY (inp &optional (trees net.acceleration.buildnode:*document*))
    Given a css selector, attempt to find the matching nodes in the passed in dom-trees (defaults to the document)
  • Function QUERY1 (inp &optional (trees net.acceleration.buildnode:*document*))
    Given a css selector, attempt to find the first matching node in the passed in dom-trees (defaults to the document)

CSS-SELECTORS.PSEUDO

  • Function NOT (node &optional sub-sel-function)
  • Function IS (node &optional sub-sel-function)
  • Function HAS (node &optional sub-sel-function)
  • Function ROOT (node &optional sub-sel-function)
  • Function FIRST-CHILD (node &optional sub-sel-function)
  • Function NTH-CHILD (node mul add)
  • Function NTH-LAST-CHILD (node mul add)
  • Function LAST-CHILD (node &optional sub-sel-function)
  • Function ONLY-CHILD (node &optional sub-sel-function)
  • Function EMPTY (node &optional sub-sel-function)

css-selectors-simple-tree

An implementation of css selectors that interacts with cl-html5-parser's simple-tree

No packages.

css-selectors-stp

An implementation of css selectors that interacts with cxml-stp

No packages.