Class HTMLPurifier_HTMLModule_CommonAttributes
Represents an XHTML 1.1 module, with information on elements, tags and attributes.
- HTMLPurifier_HTMLModule
- HTMLPurifier_HTMLModule_CommonAttributes
Note:
Even though this is technically XHTML 1.1, it is also used for regular HTML
parsing. We are using modulization as a convenient way to represent the
internals of HTMLDefinition, and our implementation is by no means conforming
and does not directly use the normative DTDs or XML schemas.
Note: The public variables in a module should almost directly correspond to the variables in HTMLPurifier_HTMLDefinition. However, the prefix info carries no special meaning in these objects (include it anyway if that's the correspondence though).
Located at xoops_trust_path/libs/htmlpurifier/library/HTMLPurifier/HTMLModule/CommonAttributes.php
Note: The public variables in a module should almost directly correspond to the variables in HTMLPurifier_HTMLDefinition. However, the prefix info carries no special meaning in these objects (include it anyway if that's the correspondence though).
Located at xoops_trust_path/libs/htmlpurifier/library/HTMLPurifier/HTMLModule/CommonAttributes.php
addBlankElement(),
addElement(),
addElementToContentSet(),
getChildDef(),
makeLookup(),
mergeInAttrIncludes(),
parseContents(),
setup()
|
public
string
|
$name | 'CommonAttributes' |
#
Short unique string identifier of the module |
public
array
|
$attr_collections | array(
'Core' => array(
0 => array('Style'),
// 'xml:space' => false,
'class' => 'Class',
'id' => 'ID',
'title' => 'CDATA',
),
'Lang' => array(),
'I18N' => array(
0 => array('Lang'), // proprietary, for xml:lang/lang
),
'Common' => array(
0 => array('Core', 'I18N')
)
) |
#
Associative array of attribute collection names to attribute collection additions. More rarely used for adding attributes to the global collections. Example is the StyleAttribute module adding the style attribute to the Core. Corresponds to HTMLDefinition's attr_collections->info, since the object's data is only info, with extra behavior associated with it. |
$content_sets,
$defines_child_def,
$elements,
$info,
$info_attr_transform_post,
$info_attr_transform_pre,
$info_injector,
$info_tag_transform,
$safe
|