d2885adffe
* 2.0: fixed CS removed the Travis icon (as this is not stable enough -- many false positive, closes #6186) [Config] Loader::import must return imported data [HttpFoundation] fixed a small regression Conflicts: README.md src/Symfony/Bridge/Twig/Extension/FormExtension.php src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/attributes.html.php src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/form_widget.html.php src/Symfony/Bundle/FrameworkBundle/Templating/Helper/FormHelper.php src/Symfony/Component/Form/Form.php src/Symfony/Component/HttpFoundation/Request.php src/Symfony/Component/HttpFoundation/SessionStorage/PdoSessionStorage.php tests/Symfony/Tests/Bridge/Doctrine/Logger/DbalLoggerTest.php |
||
---|---|---|
.. | ||
Exception | ||
Node | ||
Tests | ||
.gitattributes | ||
CHANGELOG.md | ||
composer.json | ||
CssSelector.php | ||
LICENSE | ||
phpunit.xml.dist | ||
README.md | ||
Token.php | ||
Tokenizer.php | ||
TokenStream.php | ||
XPathExpr.php | ||
XPathExprOr.php |
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:
phpunit