Represents an individual tag within an HTML tree.
| package | XenForo_Html |
|---|
__construct(string $tagName, array $attributes, \XenForo_Html_Tag $parent)
appendText(string $text)
If the last child is text, it will be added to that child; otherwise, a new child will be created.
string
attribute(string $attribute) : mixed | false
string
mixedfalse
attributes() : array
arraychildren() : array
arraycloseTag(string $tagName) : \XenForo_Html_Tag
This generally does not require modifying the tag tree, unless invalid nesting occurred.
string
\XenForo_Html_TagThe new "parent" tag that should be used by the parsercopy() : \XenForo_HTml_Tag
Does not copy any children tags or this tag's parent. The parent will need to be set manually later.
\XenForo_HTml_TagisBlock() : boolean
booleanisEmpty() : boolean
booleanisVoid() : boolean
Void tags can't have children.
booleansetParent(\XenForo_Html_Tag $parent)
tagName() : string
string$_attributes : array
$_blockTags : array
$_children : array
$_parent : \XenForo_Html_Tag | null
$_tagName : string
$_voidTags