TagName
abstract class TagName
Tag name rules:
- must start with a letter or an underscore
- can only contain letters, numbers, dashes and underscores
- can be prefixed with one prefix following the same rules, separated with one colon
- the prefixes "xsl" and "s9e" are reserved
Unprefixed names are normalized to uppercase. Prefixed names are preserved as-is.
Methods
static bool
isValid(string $name)
Return whether a string is a valid tag name
static string
normalize(string $name)
Normalize a tag name
Details
at line 29
static bool
isValid(string $name)
Return whether a string is a valid tag name
at line 42
static string
normalize(string $name)
Normalize a tag name