Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\XPath\Extension

HtmlExtension::translateCheckedpublicWC 1.0

Method of the class: HtmlExtension{}

No Hooks.

Returns

null. Nothing (null).

Usage

$HtmlExtension = new HtmlExtension();
$HtmlExtension->translateChecked( $xpath ): XPathExpr;
$xpath(XPathExpr) (required)
.

HtmlExtension::translateChecked() code WC 10.5.0

public function translateChecked(XPathExpr $xpath): XPathExpr
{
    return $xpath->addCondition(
        '(@checked '
        ."and (name(.) = 'input' or name(.) = 'command')"
        ."and (@type = 'checkbox' or @type = 'radio'))"
    );
}