HumHub Documentation (unofficial)

HTMLPurifier_Node_Element extends HTMLPurifier_Node
in package

Concrete element node class.

Table of Contents

Properties

$armor  : mixed
Lookup array of processing that this token is exempt from.
$attr  : mixed
Associative array of the node's attributes.
$children  : mixed
List of child elements.
$col  : mixed
Column number of the start token in the source document. Null if unknown.
$dead  : mixed
When true, this node should be ignored as non-existent.
$empty  : mixed
Does this use the <a></a> form or the </a> form, i.e.
$endArmor  : mixed
$endCol  : mixed
$endLine  : mixed
$line  : mixed
Line number of the start token in the source document
$name  : mixed
The lower-case name of the tag, like 'a', 'b' or 'blockquote'.

Methods

__construct()  : mixed
toTokenPair()  : mixed
Returns a pair of start and end tokens, where the end token is null if it is not necessary. Does not include children.

Properties

$armor

Lookup array of processing that this token is exempt from.

public mixed $armor = array()

Currently, valid values are "ValidateAttributes".

Tags
type

array

$attr

Associative array of the node's attributes.

public mixed $attr = array()
Tags
type

array

$children

List of child elements.

public mixed $children = array()
Tags
type

array

$col

Column number of the start token in the source document. Null if unknown.

public mixed $col
Tags
type

int

$dead

When true, this node should be ignored as non-existent.

public mixed $dead = \false

Who is responsible for ignoring dead nodes? FixNesting is responsible for removing them before passing on to child validators.

$empty

Does this use the <a></a> form or the </a> form, i.e.

public mixed $empty = \false

is it a pair of start/end tokens or an empty token.

Tags
bool

$endArmor

public mixed $endArmor = array()

$endCol

public mixed $endCol = \null

$endLine

public mixed $endLine = \null

$line

Line number of the start token in the source document

public mixed $line
Tags
type

int

$name

The lower-case name of the tag, like 'a', 'b' or 'blockquote'.

public mixed $name
Tags
note

Strictly speaking, XML tags are case sensitive, so we shouldn't be lower-casing them, but these tokens cater to HTML tags, which are insensitive.

type

string

Methods

__construct()

public __construct(mixed $name[, mixed $attr = array() ][, mixed $line = null ][, mixed $col = null ][, mixed $armor = array() ]) : mixed
Parameters
$name : mixed
$attr : mixed = array()
$line : mixed = null
$col : mixed = null
$armor : mixed = array()

toTokenPair()

Returns a pair of start and end tokens, where the end token is null if it is not necessary. Does not include children.

public toTokenPair() : mixed

        
On this page

Search results