The indices of the child Tag objects within the parseTags
result array.
The innerHTML of the tag. May be null
if this is a void tag.
The end tag.
Be aware of the following cases:
The index at which this tag ends in the wikitext.
The index of this Tag object within the result array returned by parseTags
.
The name of the tag (e.g. 'div'
for <div></div>
). Comment tags (i.e. <!-- -->
) are named '!--'
.
The nesting level of this tag. 0
if not nested within another tag.
The index of the parent Tag object within the parseTags
result array, or null
if there is no parent.
Whether this tag is a self-closing tag (which is invalid in HTML).
Whether the tag appears inside an HTML tag specified in SkipTags.
The start tag.
The index at which this tag starts in the wikitext.
Whether this tag is properly closed.
Note that void tags have this property set to false
because they do not need to be closed.
Whether this tag is a void tag.
See MDN Web Docs for a list of void elements.
Object that holds information about an HTML tag, parsed from wikitext.
This object is returned by Wikitext.parseTags.