Structure that stores an HTML element definition. Used by HTMLPurifier_HTMLDefinition and HTMLPurifier_HTMLModule.
Methods | ||
---|---|---|
public
static
|
create($content_model, $content_model_type, $attr)
Low-level factory constructor for creating new standalone element defs
Low-level factory constructor for creating new standalone element defs |
# |
public
|
mergeIn(HTMLPurifier_ElementDef $def)
Merges the values of another element definition into this one.
Values from the new element def take precedence if a…
Merges the values of another element definition into this one. Values from the new element def take precedence if a value is not mergeable. |
# |
Properties | |||
---|---|---|---|
public
|
|
$standalone = true
Does the definition work by itself, or is it created solely
for the purpose of merging into another definition?
Does the definition work by itself, or is it created solely for the purpose of merging into another definition? |
# |
public
|
|
$attr = []
Associative array of attribute name to HTMLPurifier_AttrDef.
Associative array of attribute name to HTMLPurifier_AttrDef. |
# |
public
|
|
$attr_transform_pre = []
List of tags HTMLPurifier_AttrTransform to be done before validation.
List of tags HTMLPurifier_AttrTransform to be done before validation. |
# |
public
|
|
$attr_transform_post = []
List of tags HTMLPurifier_AttrTransform to be done after validation.
List of tags HTMLPurifier_AttrTransform to be done after validation. |
# |
public
|
|
$child
HTMLPurifier_ChildDef of this tag.
HTMLPurifier_ChildDef of this tag. |
# |
public
|
|
$content_model
Abstract string representation of internal ChildDef rules.
Abstract string representation of internal ChildDef rules. |
# |
public
|
|
$content_model_type
Value of $child->type, used to determine which ChildDef to use,
used in combination with $content_model.
Value of $child->type, used to determine which ChildDef to use, used in combination with $content_model. |
# |
public
|
|
$descendants_are_inline = false
Does the element have a content model (#PCDATA | Inline)*? This
is important for chameleon ins and del processing in…
Does the element have a content model (#PCDATA | Inline)*? This is important for chameleon ins and del processing in HTMLPurifier_ChildDef_Chameleon. Dynamically set: modules don't have to worry about this one. |
# |
public
|
|
$required_attr = []
List of the names of required attributes this element has.
Dynamically populated by HTMLPurifier_HTMLDefinition:…
List of the names of required attributes this element has. Dynamically populated by HTMLPurifier_HTMLDefinition::getElement() |
# |
public
|
|
$excludes = []
Lookup table of tags excluded from all descendants of this tag.
Lookup table of tags excluded from all descendants of this tag. |
# |
public
|
|
$autoclose = []
This tag is explicitly auto-closed by the following tags.
This tag is explicitly auto-closed by the following tags. |
# |
public
|
|
$wrap
If a foreign element is found in this element, test if it is
allowed by this sub-element; if it is, instead of closing…
If a foreign element is found in this element, test if it is allowed by this sub-element; if it is, instead of closing the current element, place it inside this element. |
# |
public
|
|
$formatting
Whether or not this is a formatting element affected by the
"Active Formatting Elements" algorithm.
Whether or not this is a formatting element affected by the "Active Formatting Elements" algorithm. |
# |