class ElementNode extends AreaNode

HTML element node.

Properties

$variableName
$attributes
$selfClosing
$content
Tag[] $nAttributes
$tagNode

n:tag & n:tag- support

$captureTagName
$breakable

Methods

__construct(string $name, Position|null $position = null, ElementNode|null $parent = null, stdClass|null $data = null, string $contentType = ContentType::Html)

No description

Node|bool|null
getAttribute(string $name)

No description

bool
is(string $name)

No description

bool
isRawText()

No description

string
print(PrintContext $context)

No description

getIterator()

No description

Details

at line 44
__construct(string $name, Position|null $position = null, ElementNode|null $parent = null, stdClass|null $data = null, string $contentType = ContentType::Html)

No description

Parameters

string $name
Position|null $position
ElementNode|null $parent
stdClass|null $data
string $contentType

at line 56
Node|bool|null getAttribute(string $name)

No description

Parameters

string $name

Return Value

Node|bool|null

at line 71
bool is(string $name)

No description

Parameters

string $name

Return Value

bool

at line 79
bool isRawText()

No description

Return Value

bool

at line 86
string print(PrintContext $context)

No description

Parameters

PrintContext $context

Return Value

string

at line 139
Generator getIterator()

No description

Return Value

Generator