Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
HTMLPurifier_Node_Element Class Reference
Inheritance diagram for HTMLPurifier_Node_Element:
HTMLPurifier_Node

Public Member Functions

 __construct ($name, $attr=array(), $line=null, $col=null, $armor=array())
 
 toTokenPair ()
 Returns a pair of start and end tokens, where the end token is null if it is not necessary.
 

Public Attributes

 $armor = array()
 Lookup array of processing that this token is exempt from.
 
 $attr = array()
 Associative array of the node's attributes.
 
 $children = array()
 List of child elements.
 
 $col
 Column number of the start token in the source document.
 
 $dead = false
 When true, this node should be ignored as non-existent.
 
 $empty = false
 Does this use the form or the form, i.e.
 
 $endArmor = array()
 
 $endCol = null
 
 $endLine = null
 
 $line
 Line number of the start token in the source document @type int.
 
 $name
 The lower-case name of the tag, like 'a', 'b' or 'blockquote'.
 

Member Function Documentation

◆ toTokenPair()

HTMLPurifier_Node_Element::toTokenPair ( )

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

Does not include children. @type array

Reimplemented from HTMLPurifier_Node.

Member Data Documentation

◆ $armor

HTMLPurifier_Node::$armor = array()
inherited

Lookup array of processing that this token is exempt from.

Currently, valid values are "ValidateAttributes". @type array

◆ $attr

HTMLPurifier_Node_Element::$attr = array()

Associative array of the node's attributes.

@type array

◆ $children

HTMLPurifier_Node_Element::$children = array()

List of child elements.

@type array

◆ $col

HTMLPurifier_Node::$col
inherited

Column number of the start token in the source document.

Null if unknown. @type int

◆ $dead

HTMLPurifier_Node::$dead = false
inherited

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

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

◆ $empty

HTMLPurifier_Node_Element::$empty = false

Does this use the form or the form, i.e.

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

◆ $name

HTMLPurifier_Node_Element::$name

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

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

The documentation for this class was generated from the following file: