Class HTMLPurifier_ChildDef_List

InheritanceHTMLPurifier_ChildDef_List » HTMLPurifier_ChildDef

Definition for list containers ul and ol.

What does this do? The big thing is to handle ol/ul at the top level of list nodes, which should be handled specially by /folding/ them into the previous list node. We generally shouldn't ever see other disallowed elements, because the autoclose behavior in MakeWellFormed handles it.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$allow_empty Indicates whether or not an empty array of children is okay. HTMLPurifier_ChildDef
$elements HTMLPurifier_ChildDef_List
$type HTMLPurifier_ChildDef_List

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getAllowedElements() Get lookup of tag names that should not close this element automatically. HTMLPurifier_ChildDef
validateChildren() HTMLPurifier_ChildDef_List

Property Details

$elements public property
public $elements = ['li' => true'ul' => true'ol' => true]
$type public property
public $type 'list'

Method Details

validateChildren() public method

public array validateChildren ( $children, $config, $context )
$children array
$config HTMLPurifier_Config
$context HTMLPurifier_Context