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-07-09 14:43:50 +02:00
..
Exception [CssSelector] renamed SyntaxError 2011-06-14 14:12:03 +02:00
Node fixed CS (mainly method signatures) 2012-07-09 14:43:50 +02:00
composer.json removed the version attribute in all composer.json files 2012-01-05 14:51:20 +01:00
CssSelector.php fixed CS (mainly method signatures) 2012-07-09 14:43:50 +02:00
LICENSE Updated LICENSE files copyright 2012-02-22 10:10:37 +01:00
README.md [CssSelector] updated upstream code repository 2012-05-13 10:03:21 +02:00
Token.php fixed phpdoc @param alignment 2012-05-15 18:56:32 +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 (mainly method signatures) 2012-07-09 14:43:50 +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

Unit tests:

https://github.com/symfony/symfony/tree/master/tests/Symfony/Tests/Component/CssSelector

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