public static function Elements::isSvgElement in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/masterminds/html5/src/HTML5/Elements.php \Masterminds\HTML5\Elements::isSvgElement()
Test if an element is a valid SVG element.
Parameters
string $name: The name of the element.
Return value
boolean True if a SVG element and false otherise.
2 calls to Elements::isSvgElement()
- Elements::isElement in vendor/
masterminds/ html5/ src/ HTML5/ Elements.php - Is an element name valid in an html5 document.
- ElementsTest::testIsSvgElement in vendor/
masterminds/ html5/ test/ HTML5/ ElementsTest.php
File
- vendor/
masterminds/ html5/ src/ HTML5/ Elements.php, line 532
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 isSvgElement($name) {
// SVG is case-sensetitive unlike html5 elements.
return isset(static::$svg[$name]);
}