Class HTMLPurifier_ChildDef_List
Inheritance | HTMLPurifier_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
Property | Type | Description | Defined 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
Method | Description | Defined By |
---|---|---|
getAllowedElements() | Get lookup of tag names that should not close this element automatically. | HTMLPurifier_ChildDef |
validateChildren() | HTMLPurifier_ChildDef_List |
Property Details
Method Details
public array validateChildren ( $children, $config, $context ) | ||
$children | array | |
$config | HTMLPurifier_Config | |
$context | HTMLPurifier_Context |