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
$attr
Associative array of the node's attributes.
public
mixed
$attr
= array()
Tags
$children
List of child elements.
public
mixed
$children
= array()
Tags
$col
Column number of the start token in the source document. Null if unknown.
public
mixed
$col
Tags
$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
$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
$name
The lower-case name of the tag, like 'a', 'b' or 'blockquote'.
public
mixed
$name
Tags
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