public function isLocalElement($element) {
        $uri = $element->namespaceURI;
        if (empty($uri)) {
            return false;
        }

        return isset(static::$local_ns[$uri]);
    }
public function isLocalElement($element) {
        $uri = $element->namespaceURI;
        if (empty($uri)) {
            return false;
        }

        return isset(static::$local_ns[$uri]);
    }
public function isLocalElement ( $ element ) { $ uri = $ element -> namespaceURI ; if ( empty ( $ uri ) ) { return false ; } return isset ( static :: $ local_ns [ $ uri ] ) ; }
Is an element local?

@param mixed $element
An element that implement \DOMNode.

@return bool True if local and false otherwise.
Is an element local?