private function canResetForm(\DOMElement $node)
    {
        $type = $node->hasAttribute('type') ? $node->getAttribute('type') : null;

        return in_array($node->nodeName, array('input', 'button'), true) && 'reset' === $type;
    }
private function canResetForm(\DOMElement $node)
    {
        $type = $node->hasAttribute('type') ? $node->getAttribute('type') : null;

        return in_array($node->nodeName, array('input', 'button'), true) && 'reset' === $type;
    }
private function canResetForm ( \ DOMElement $ node ) { $ type = $ node -> hasAttribute ( 'type' ) ? $ node -> getAttribute ( 'type' ) : null ; return in_array ( $ node -> nodeName , array ( 'input' , 'button' ) , true ) && 'reset' === $ type ; }
Determines if a node can reset a form.

@param \DOMElement $node Node.

@return boolean
Determines if a node can reset a form .