src/HtmlElement.php
public function removeAttribute(string $name) : self
    {
        if (isset($this->attributes[$name])) {
            unset($this->attributes[$name]);
        }

        return $this;
    }
public function removeAttribute(string $name) : self
    {
        if (isset($this->attributes[$name])) {
            unset($this->attributes[$name]);
        }

        return $this;
    }
@param string $name

@return $this|self