You are here

public static function Elements::isMathMLElement in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/masterminds/html5/src/HTML5/Elements.php \Masterminds\HTML5\Elements::isMathMLElement()

Test if an element name is a valid MathML presentation element.

Parameters

string $name: The name of the element.

Return value

bool True if a MathML name and false otherwise.

2 calls to Elements::isMathMLElement()
Elements::isElement in vendor/masterminds/html5/src/HTML5/Elements.php
Is an element name valid in an html5 document.
ElementsTest::testIsMathMLElement in vendor/masterminds/html5/test/HTML5/ElementsTest.php

File

vendor/masterminds/html5/src/HTML5/Elements.php, line 518

Class

Elements
This class provides general information about HTML5 elements, including syntactic and semantic issues. Parsers and serializers can use this class as a reference point for information about the rules of various HTML5 elements.

Namespace

Masterminds\HTML5

Code

public static function isMathMLElement($name) {

  // MathML is case-sensetitive unlike html5 elements.
  return isset(static::$mathml[$name]);
}