isExactly
isExactly
The is-exactly (=) operator.
An event handler for handling CSS 3 Selector parsing.
This provides a standard interface for CSS 3 Selector event handling. As the parser parses a selector, it will fire events. Implementations of EventHandler 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.
attribute(string $name, string $value = NULL, integer $operation = \QueryPath\CSS\EventHandler::isExactly)
Handle an attribute selector.
Example: [name=attr] Example: [name~=attr]
string | $name | The attribute name. |
string | $value | The value of the attribute, if given. |
integer | $operation | The operation to be used for matching. See {@link EventHandler} constants for a list of supported operations. |
attributeNS(string $name, string $ns, string $value = NULL, integer $operation = \QueryPath\CSS\EventHandler::isExactly)
Handle an attribute selector bound to a specific namespace.
Example: [ns|name=attr] Example: [ns|name~=attr]
string | $name | The attribute name. |
string | $ns | The namespace identifier (not the URI). |
string | $value | The value of the attribute, if given. |
integer | $operation | The operation to be used for matching. See {@link EventHandler} constants for a list of supported operations. |