You are here

public function Traverser::isLocalElement in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/masterminds/html5/src/HTML5/Serializer/Traverser.php \Masterminds\HTML5\Serializer\Traverser::isLocalElement()

Is an element local?

Parameters

mixed $ele: An element that implement \DOMNode.

Return value

bool True if local and false otherwise.

File

vendor/masterminds/html5/src/HTML5/Serializer/Traverser.php, line 141

Class

Traverser
Traverser for walking a DOM tree.

Namespace

Masterminds\HTML5\Serializer

Code

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