Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Traverser.php

function 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 133

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]);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal