public function HtmlExtension::translateSelected in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/css-selector/XPath/Extension/HtmlExtension.php \Symfony\Component\CssSelector\XPath\Extension\HtmlExtension::translateSelected()
Parameters
XPathExpr $xpath:
Return value
File
- vendor/
symfony/ css-selector/ XPath/ Extension/ HtmlExtension.php, line 196
Class
- HtmlExtension
- XPath expression translator HTML extension.
Namespace
Symfony\Component\CssSelector\XPath\ExtensionCode
public function translateSelected(XPathExpr $xpath) {
return $xpath
->addCondition("(@selected and name(.) = 'option')");
}