PHP Class Symfony\Component\CssSelector\Parser
$xpath = Parser::cssToXpath('h1.foo');
This component is a port of the Python lxml library,
which is copyright Infrae and distributed under the BSD license.
显示文件
Open project: pmjones/php-framework-benchmarks
Class Usage Examples
Public Methods
Method |
Description |
|
cssToXpath ( $cssExpr, $prefix = 'descendant-or-self::' ) |
|
|
parse ( $string ) |
|
|
Protected Methods
Method Details
cssToXpath()
public static method
public static cssToXpath ( $cssExpr, $prefix = 'descendant-or-self::' ) |
parseAttrib()
protected method
parseSelector()
protected method
parseSelectorGroup()
protected method
parseSimpleSelector()
protected method