0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-12-23 00:41:52 +00:00

Add some clarifying comments on what belongs in activeModules and validModules.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@757 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang 2007-02-16 03:48:25 +00:00
parent 31d0c621f5
commit 243ad45e59

View File

@ -54,19 +54,13 @@ class HTMLPurifier_HTMLModuleManager
/** /**
* Associative array of module setup names to the corresponding safe * Associative array of module setup names to the corresponding safe
* (as in no XSS, no full document markup) modules. * (as in no XSS, no full document markup) modules. These are
* included in both valid and active module lists by default.
*/ */
var $collectionsSafe = array( var $collectionsSafe = array(
'_Common' => array( // leading _ indicates private '_Common' => array( // leading _ indicates private
'CommonAttributes', 'CommonAttributes', 'Text', 'Hypertext', 'List',
'Text', 'Presentation', 'Edit', 'Bdo', 'Tables', 'Image',
'Hypertext',
'List',
'Presentation',
'Edit',
'Bdo',
'Tables',
'Image',
'StyleAttribute' 'StyleAttribute'
), ),
// HTML definitions, defer completely to XHTML definitions // HTML definitions, defer completely to XHTML definitions
@ -80,7 +74,8 @@ class HTMLPurifier_HTMLModuleManager
/** /**
* Modules to import if lenient mode (attempt to convert everything * Modules to import if lenient mode (attempt to convert everything
* to a valid representation) is on * to a valid representation) is on. These must not be in activeModules
* unless specified so.
*/ */
var $collectionsLenient = array( var $collectionsLenient = array(
'HTML 4.01 Strict' => 'XHTML 1.0 Strict', 'HTML 4.01 Strict' => 'XHTML 1.0 Strict',
@ -90,7 +85,8 @@ class HTMLPurifier_HTMLModuleManager
/** /**
* Modules to import if correctional mode (correct everything that * Modules to import if correctional mode (correct everything that
* is feasible to strict mode) is on * is feasible to strict mode) is on. These must not be in activeModules
* unless specified so.
*/ */
var $collectionsCorrectional = array( var $collectionsCorrectional = array(
'HTML 4.01 Transitional' => 'XHTML 1.0 Transitional', 'HTML 4.01 Transitional' => 'XHTML 1.0 Transitional',