Class HTMLPurifier_HTMLModule_Scripting

InheritanceHTMLPurifier_HTMLModule_Scripting » HTMLPurifier_HTMLModule

XHTML 1.1 Scripting module, defines elements that are used to contain information pertaining to executable scripts or the lack of support for executable scripts.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$attr_collections 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. HTMLPurifier_HTMLModule
$content_sets HTMLPurifier_HTMLModule_Scripting
$defines_child_def Boolean flag that indicates whether or not getChildDef is implemented. HTMLPurifier_HTMLModule
$elements HTMLPurifier_HTMLModule_Scripting
$info Associative array of element names to element definitions. HTMLPurifier_HTMLModule
$info_attr_transform_post List of HTMLPurifier_AttrTransform to be performed after validation. HTMLPurifier_HTMLModule
$info_attr_transform_pre List of HTMLPurifier_AttrTransform to be performed before validation. HTMLPurifier_HTMLModule
$info_injector List of HTMLPurifier_Injector to be performed during well-formedness fixing. HTMLPurifier_HTMLModule
$info_tag_transform Associative array of deprecated tag name to HTMLPurifier_TagTransform. HTMLPurifier_HTMLModule
$name HTMLPurifier_HTMLModule_Scripting
$safe HTMLPurifier_HTMLModule_Scripting

Public Methods

Hide inherited methods

MethodDescriptionDefined By
addBlankElement() Convenience function that creates a totally blank, non-standalone element. HTMLPurifier_HTMLModule
addElement() Convenience function that sets up a new element HTMLPurifier_HTMLModule
addElementToContentSet() Convenience function that registers an element to a content set HTMLPurifier_HTMLModule
getChildDef() Retrieves a proper HTMLPurifier_ChildDef subclass based on content_model and content_model_type member variables of the HTMLPurifier_ElementDef class. There is a similar function in HTMLPurifier_HTMLDefinition. HTMLPurifier_HTMLModule
makeLookup() Convenience function that generates a lookup table with boolean true as value. HTMLPurifier_HTMLModule
mergeInAttrIncludes() Convenience function that merges a list of attribute includes into an attribute array. HTMLPurifier_HTMLModule
parseContents() Convenience function that transforms single-string contents into separate content model and content model type HTMLPurifier_HTMLModule
setup() HTMLPurifier_HTMLModule_Scripting

Property Details

$content_sets public property
public $content_sets = ['Block' => 'script | noscript''Inline' => 'script | noscript']
$elements public property
public $elements = ['script''noscript']
$name public property
public $name 'Scripting'
$safe public property
public $safe false

Method Details

setup() public method

public void setup ( $config )
$config HTMLPurifier_Config