diff --git a/library/HTMLPurifier/Strategy/ValidateAttributes.php b/library/HTMLPurifier/Strategy/ValidateAttributes.php index c9d0ef7c..f5bc00e6 100644 --- a/library/HTMLPurifier/Strategy/ValidateAttributes.php +++ b/library/HTMLPurifier/Strategy/ValidateAttributes.php @@ -41,6 +41,8 @@ class HTMLPurifier_Strategy_ValidateAttributes extends HTMLPurifier_Strategy // note that we have no facilities here for removing tokens $validator->validateToken($token, $config, $context); + + $tokens[$key] = $token; // for PHP 4 } $context->destroy('IDAccumulator');