public static function Elements::normalizeSvgElement in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/masterminds/html5/src/HTML5/Elements.php \Masterminds\HTML5\Elements::normalizeSvgElement()
Normalize a SVG element name to its proper case and form.
Parameters
string $name: The name of the element.
Return value
string The normalized form of the element name.
4 calls to Elements::normalizeSvgElement()
- DOMTreeBuilder::endTag in vendor/
masterminds/ html5/ src/ HTML5/ Parser/ DOMTreeBuilder.php - An end-tag.
- DOMTreeBuilder::startTag in vendor/
masterminds/ html5/ src/ HTML5/ Parser/ DOMTreeBuilder.php - Process the start tag.
- ElementsTest::testNormalizeSvgElement in vendor/
masterminds/ html5/ test/ HTML5/ ElementsTest.php - OutputRules::element in vendor/
masterminds/ html5/ src/ HTML5/ Serializer/ OutputRules.php - Write an element.
File
- vendor/
masterminds/ html5/ src/ HTML5/ Elements.php, line 585
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 normalizeSvgElement($name) {
$name = strtolower($name);
if (isset(static::$svgCaseSensitiveElementMap[$name])) {
$name = static::$svgCaseSensitiveElementMap[$name];
}
return $name;
}