2006-07-23 00:11:03 +00:00
|
|
|
<?php
|
|
|
|
|
2007-02-04 23:10:10 +00:00
|
|
|
require_once 'HTMLPurifier/XHTMLDefinition.php';
|
2006-07-23 00:11:03 +00:00
|
|
|
|
2006-08-20 20:59:13 +00:00
|
|
|
/**
|
|
|
|
* Structure that stores an element definition.
|
|
|
|
*/
|
2006-07-23 00:11:03 +00:00
|
|
|
class HTMLPurifier_ElementDef
|
|
|
|
{
|
|
|
|
|
2006-08-20 20:59:13 +00:00
|
|
|
/**
|
|
|
|
* Associative array of attribute name to HTMLPurifier_AttrDef
|
|
|
|
* @public
|
|
|
|
*/
|
2006-07-30 19:11:18 +00:00
|
|
|
var $attr = array();
|
2006-08-20 20:59:13 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* List of tag's HTMLPurifier_AttrTransform to be done before validation
|
|
|
|
* @public
|
|
|
|
*/
|
2006-08-14 23:11:28 +00:00
|
|
|
var $attr_transform_pre = array();
|
2006-08-20 20:59:13 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* List of tag's HTMLPurifier_AttrTransform to be done after validation
|
|
|
|
* @public
|
|
|
|
*/
|
2006-08-14 23:11:28 +00:00
|
|
|
var $attr_transform_post = array();
|
2006-08-20 20:59:13 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Lookup table of tags that close this tag.
|
|
|
|
* @public
|
|
|
|
*/
|
2006-07-31 00:15:01 +00:00
|
|
|
var $auto_close = array();
|
2006-08-20 20:59:13 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* HTMLPurifier_ChildDef of this tag.
|
|
|
|
* @public
|
|
|
|
*/
|
2006-07-31 00:15:01 +00:00
|
|
|
var $child;
|
2006-08-20 20:59:13 +00:00
|
|
|
|
2007-02-04 15:28:47 +00:00
|
|
|
/**
|
|
|
|
* Abstract string representation of internal ChildDef rules
|
|
|
|
* @public
|
|
|
|
*/
|
2007-02-04 01:01:27 +00:00
|
|
|
var $content_model;
|
2007-02-04 15:28:47 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Value of $child->type, used to determine which ChildDef to use
|
|
|
|
* @public
|
|
|
|
*/
|
2007-02-04 01:52:13 +00:00
|
|
|
var $content_model_type;
|
2007-02-04 01:01:27 +00:00
|
|
|
|
2007-02-04 15:28:47 +00:00
|
|
|
/**
|
|
|
|
* Does the element have a content model (#PCDATA | Inline)*? This
|
|
|
|
* is important for chameleon ins and del processing.
|
|
|
|
* @public
|
|
|
|
*/
|
2007-02-04 03:53:57 +00:00
|
|
|
var $descendants_are_inline;
|
2006-08-20 20:59:13 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Lookup table of tags excluded from all descendants of this tag.
|
|
|
|
* @public
|
|
|
|
*/
|
2006-08-03 01:18:57 +00:00
|
|
|
var $excludes = array();
|
2006-07-23 00:11:03 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2007-02-04 03:53:57 +00:00
|
|
|
?>
|