WordPress at a glance
function is not described

Symfony\Component\CssSelector\XPath\Extension

HtmlExtension::__construct() public WC 1.0

Constructor.

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

No Hooks.

Return

null. Nothing.

Usage

$HtmlExtension = new HtmlExtension();
$HtmlExtension->__construct( $translator );
$translator(Translator) (required)
-

Code of HtmlExtension::__construct() WC 5.4.1

<?php
public function __construct(Translator $translator)
{
    $translator
        ->getExtension('node')
        ->setFlag(NodeExtension::ELEMENT_NAME_IN_LOWER_CASE, true)
        ->setFlag(NodeExtension::ATTRIBUTE_NAME_IN_LOWER_CASE, true);
}