public static function Elements::isElement in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/masterminds/html5/src/HTML5/Elements.php \Masterminds\HTML5\Elements::isElement()
Is an element name valid in an html5 document.
This includes html5 elements along with other allowed embedded content such as svg and mathml.
Parameters
string $name: The name of the element.
Return value
bool True if valid and false otherwise.
2 calls to Elements::isElement()
- Elements::isA in vendor/
masterminds/ html5/ src/ HTML5/ Elements.php - Check whether the given element meets the given criterion.
- ElementsTest::testIsElement in vendor/
masterminds/ html5/ test/ HTML5/ ElementsTest.php
File
- vendor/
masterminds/ html5/ src/ HTML5/ Elements.php, line 549
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 isElement($name) {
return static::isHtml5Element($name) || static::isMathMLElement($name) || static::isSvgElement($name);
}