parserino.names
Names of tags, attributes and namespaces.
Known names have a fixed id (Tag, AttrName); other names get an id when a document meets them (see NameTable). Generated by tools/gen/gen_names.d.
The lists come from the HTML Living Standard (https://html.spec.whatwg.org/), see tools/gen/spec.d.
Types 5
Namespaces. None is no namespace (as for most attributes); nothing uses Any.
Known tags. Unknown tag names get ids from Tag.Last on. The members are the names in PascalCase (annotation-xml is AnnotationXml); Undef (no tag), EndOfFile and the ...Node members name the nodes that are not elements.
Categories of the tags in the tree construction ("special", "formatting", scopes, ...)
Known attributes. Unknown names get ids from AttrName.Last on. The members are the names in PascalCase (accept-charset is AcceptCharset); Undef is no attribute.
Interned names of a document: known names have their static id, the others get new ids (from first on) the first time they are seen.
uint intern(scope const(char)[] name, ref Arena arena, uint first) @nogc nothrow pure @safeId of `name`, adding it if needed. It returns 0 if out of memory.uint find(scope const(char)[] name, uint first) @nogc nothrow pure @safe constId of `name` if already interned, else 0const(char)[] name(uint id, uint first) @nogc nothrow pure @safe constName of an id (from `first` on)EntryFunctions 3
Tag knownTag(scope const(char)[] name) @nogc nothrow pure @safe @trustedId of a known tag (`name` must be lowercase), or `Tag.Undef`AttrName knownAttr(scope const(char)[] name) @nogc nothrow pure @safe @trustedId of a known attribute (`name` must be lowercase), or `AttrName.Undef`Variables 3
string[Tag.Last] tagNamesNames of the known tags (lowercase)
ubyte[Ns.max + 1][Tag.Last] tagCategoriesCategories of each tag, for each namespace
string[AttrName.Last] attrNamesNames of the known attributes