Zest
Fast, lightweight, extensible CSS selector engine for PHP
|
:has
and :is
can now use custom selectors.>
combinators, as well as the :dir
and :lang
selectors, could attempt to match against a DOMDocument or DOMDocumentFragment instead of a DOMElement.standardsMode
: set to true
for a spec-compliant DOM implementationgetElementsById
: pass a callable(DOMNode,string):array
if your DOM implementation can index multiple elements with the same id, or true
to force a slow full-tree search to guarantee that id selectors can return multiple results.ZestInst::getElementsById()
, ::getElementsByTagName()
, and ::getElementsByClassName()
methods are now virtual (not static) to allow clients to subclass and override them if more efficient implementations are available.ZestInst::newBadSelectorException()
in order to customize the exception that is thrown when a selector parse error occurs.ZestInst::isStandardsMode()
in order to force Zest into standards mode (or not).:scope
selector*|TAG
and |TAG
.