elementMatches()
elementMatches(string $pseudoclass, resource $node, resource $scope, mixed $value = NULL)
Tests whether the given element matches the given pseudoclass.
Parameters
string | $pseudoclass | The string name of the pseudoclass |
resource | $node | The DOMNode to be tested. |
resource | $scope | The DOMElement that is the active root for this node. |
mixed | $value | The optional value string provided with this class. This is used, for example, in an+b psuedoclasses. |