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/README.md

26 lines
656 B
Markdown
Raw Normal View History

CssSelector Component
=====================
2011-12-18 13:18:13 +00:00
CssSelector converts CSS selectors to XPath expressions.
2011-12-18 13:18:13 +00:00
The component only goal is to convert CSS selectors to their XPath
equivalents:
2011-12-18 13:18:13 +00:00
use Symfony\Component\CssSelector\CssSelector;
2011-12-18 13:18:13 +00:00
print CssSelector::toXPath('div.item > h4 > a');
Resources
---------
2011-12-18 13:18:13 +00:00
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