mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-06 14:16:32 +02:00
Refactor unit tests so that abstract test cases are now called Harnesses and AttrDef tests use their harness's assertDef() function, which enforces type much better. Also fixed a few bugs.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@161 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@@ -26,6 +26,15 @@ class HTMLPurifier_Config
|
||||
var $attr_class_blacklist = array();
|
||||
var $attr_class_whitelist = array();
|
||||
|
||||
// designate whether or not to allow numerals in language code subtags
|
||||
// RFC 1766, the current standard referenced by XML, does not permit
|
||||
// numbers, but,
|
||||
// RFC 3066, the superseding best practice standard since January 2001,
|
||||
// permits them.
|
||||
// we allow numbers by default, although you generally never see them
|
||||
// at all.
|
||||
var $attr_lang_alpha = false;
|
||||
|
||||
function createDefault() {
|
||||
$config = new HTMLPurifier_Config();
|
||||
return $config;
|
||||
|
Reference in New Issue
Block a user