function 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.
1 call to Elements::isMathMLElement()
- Elements::isElement in vendor/
masterminds/ html5/ src/ HTML5/ Elements.php - Is an element name valid in an html5 document. This includes html5 elements along with other allowed embedded content such as svg and mathml.
File
-
vendor/
masterminds/ html5/ src/ HTML5/ Elements.php, line 529
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\HTML5Code
public static function isMathMLElement($name) {
// MathML is case-sensitive unlike html5 elements.
return isset(static::$mathml[$name]);
}