Located in File: /src/QueryPath/CssParser.php
This provides a standard interface for CSS 3 Selector event handling. As the parser parses a selector, it will fire events. Implementations of CssEventHandler can then handle the events.
This library is inspired by the SAX2 API for parsing XML. Each component of a selector fires an event, passing the necessary data on to the event handler.
Method adjacent (line 143)
Example: +
Method anotherSelector (line 148)
Example: ,
Method anyDescendant (line 158)
Example: ' '
Method anyElement (line 75)
Example: *
Method anyElementInNS (line 82)
Example: ns|*
Method attribute (line 102)
Example: [name=attr] Example: [name~=attr]
Method attributeNS (line 117)
Example: [ns|name=attr] Example: [ns|name~=attr]
Method directDescendant (line 138)
Example: >
Method element (line 61)
Example: name
Method elementClass (line 89)
Example: .name
Method elementID (line 54)
An ID begins with an octothorp: #name.
Method elementNS (line 70)
example: namespace|name
Method pseudoClass (line 126)
Example: :name(value)
Method pseudoElement (line 133)
Example: ::name
Method sibling (line 153)
Example: ~