__construct()
addChildTag()
appendText()
attribute()
attributes()
children()
closeTag()
copy()
isBlock()
isEmpty()
isVoid()
parent()
setParent()
tagName()
$_attributes
$_blockTags
$_children
$_parent
$_tagName
$_voidTags
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
mixed
false
attributes() : array
array
children() : array
array
closeTag(string $tagName) : \XenForo_Html_Tag
This generally does not require modifying the tag tree, unless invalid nesting occurred.
string
\XenForo_Html_Tag
The 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_Tag
isBlock() : boolean
boolean
isEmpty() : boolean
boolean
isVoid() : boolean
Void tags can't have children.
boolean
setParent(\XenForo_Html_Tag $parent)
tagName() : string
string
$_attributes : array
$_blockTags : array
$_children : array
$_tagName : string
$_voidTags