This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/CssSelector
2012-11-09 14:10:06 +01:00
..
Exception [CssSelector] renamed SyntaxError 2011-06-14 14:12:03 +02:00
Node fixed CS 2012-07-09 14:54:20 +02:00
Tests made usage of Composer autoloader for subtree-split unit tests 2012-11-09 14:10:06 +01:00
.gitattributes [2.1] Exclude tests from zips via gitattributes 2012-10-04 17:17:57 +02:00
.gitignore made usage of Composer autoloader for subtree-split unit tests 2012-11-09 14:10:06 +01:00
CHANGELOG.md [CssSelector] added CHANGELOG 2012-04-26 22:11:05 +02:00
composer.json Optimize autoload prefix in composer.json 2012-09-28 09:34:16 +02:00
CssSelector.php fixed CS 2012-07-09 14:54:20 +02:00
LICENSE Updated LICENSE files copyright 2012-02-22 10:10:37 +01:00
phpunit.xml.dist made usage of Composer autoloader for subtree-split unit tests 2012-11-09 14:10:06 +01:00
README.md made usage of Composer autoloader for subtree-split unit tests 2012-11-09 14:10:06 +01:00
Token.php fixed phpdoc @param alignment 2012-05-15 22:19:31 +02:00
Tokenizer.php fixed CS 2012-05-20 18:15:10 +02:00
TokenStream.php [CssSelector] moved protected to private 2011-03-24 08:34:52 +01:00
XPathExpr.php fixed CS 2012-07-09 14:54:20 +02:00
XPathExprOr.php [CssSelector] Fixed Issue for XPathExprOr: missing prefix in string conversion 2011-11-28 22:00:26 +01:00

CssSelector Component

CssSelector converts CSS selectors to XPath expressions.

The component only goal is to convert CSS selectors to their XPath equivalents:

use Symfony\Component\CssSelector\CssSelector;

print CssSelector::toXPath('div.item > h4 > a');

Resources

This component is a port of the Python lxml library, which is copyright Infrae and distributed under the BSD license.

Current code is a port of https://github.com/SimonSapin/cssselect@fd2e70

You can run the unit tests with the following command:

$ cd path/to/Symfony/Component/CssSelector/
$ composer.phar install --dev
$ phpunit