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
Fabien Potencier 8ce034fae0 Revert "merged 2.0"
This reverts commit 7000e944fd, reversing
changes made to 9d9013d662.
2012-01-08 20:43:02 +01:00
..
Exception [CssSelector] renamed SyntaxError 2011-06-14 14:12:03 +02:00
Node [DoctrineBridge] fixed some CS 2011-12-13 10:22:12 +01:00
composer.json Revert "merged 2.0" 2012-01-08 20:43:02 +01:00
CssSelector.php [CssSelector] renamed Parser::cssToXPath() to CssSelector::toXPath() 2011-06-15 07:55:23 +02:00
LICENSE added LICENSE files for the subtree repositories 2011-02-22 18:58:15 +01:00
README.md tweaked the README files 2011-12-18 14:22:28 +01:00
Token.php [CssSelector] moved protected to private 2011-03-24 08:34:52 +01:00
Tokenizer.php [CssSelector] fixed exception namespace 2011-06-29 19:11:00 +02:00
TokenStream.php [CssSelector] moved protected to private 2011-03-24 08:34:52 +01:00
XPathExpr.php [CssSelector] moved protected to private 2011-03-24 08:34:52 +01: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 http://codespeak.net/svn/lxml/trunk/src/lxml/cssselect.py@71545