WordPress at a glance
function is not described

Symfony\Component\CssSelector\XPath\Extension

HtmlExtension::translateDisabled() public WC 1.0

{} It's a method of the class: HtmlExtension{}

No Hooks.

Return

XPathExpr.

Usage

$HtmlExtension = new HtmlExtension();
$HtmlExtension->translateDisabled( $xpath );
$xpath(XPathExpr) (required)
-

Code of HtmlExtension::translateDisabled() WC 5.4.1

<?php
public function translateDisabled(XPathExpr $xpath)
{
    return $xpath->addCondition(
        '('
            .'@disabled and'
            .'('
                ."(name(.) = 'input' and @type != 'hidden')"
                ." or name(.) = 'button'"
                ." or name(.) = 'select'"
                ." or name(.) = 'textarea'"
                ." or name(.) = 'command'"
                ." or name(.) = 'fieldset'"
                ." or name(.) = 'optgroup'"
                ." or name(.) = 'option'"
            .')'
        .') or ('
            ."(name(.) = 'input' and @type != 'hidden')"
            ." or name(.) = 'button'"
            ." or name(.) = 'select'"
            ." or name(.) = 'textarea'"
        .')'
        .' and ancestor::fieldset[@disabled]'
    );
    // todo: in the second half, add "and is not a descendant of that fieldset element's first legend element child, if any."
}