public static function Elements::element in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/masterminds/html5/src/HTML5/Elements.php \Masterminds\HTML5\Elements::element()
Get the element mask for the given element name.
Parameters
string $name: The name of the element.
Return value
int The element mask.
3 calls to Elements::element()
- DOMTreeBuilder::startTag in vendor/
masterminds/ html5/ src/ HTML5/ Parser/ DOMTreeBuilder.php - Process the start tag.
- Elements::isA in vendor/
masterminds/ html5/ src/ HTML5/ Elements.php - Check whether the given element meets the given criterion.
- ElementsTest::testElement in vendor/
masterminds/ html5/ test/ HTML5/ ElementsTest.php
File
- vendor/
masterminds/ html5/ src/ HTML5/ Elements.php, line 562
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 element($name) {
if (isset(static::$html5[$name])) {
return static::$html5[$name];
}
if (isset(static::$svg[$name])) {
return static::$svg[$name];
}
if (isset(static::$mathml[$name])) {
return static::$mathml[$name];
}
return false;
}