Class HTMLPurifier_AttrValidator

Description

Validates the attributes of a token. very well. also needed it besides ValidateAttributes.

Validates the attributes of a token. Doesn't manage required attributes very well. The only reason we factored this out was because RemoveForeignElements also needed it besides ValidateAttributes.

Located in /library/HTMLPurifier/AttrValidator.php (line 8)


	
			
Method Summary
void validateToken ($token &$token, $config &$config, $context $context)
Methods
validateToken (line 21)

Validates the attributes of a token, returning a modified token

Validates the attributes of a token, returning a modified token that has valid tokens

  • access: public
void validateToken ($token &$token, $config &$config, $context $context)
  • $token &$token: Reference to token to validate. We require a reference because the operation this class performs on the token are not atomic, so the context CurrentToken to be updated throughout
  • $config &$config: Instance of HTMLPurifier_Config
  • $context $context: Instance of HTMLPurifier_Context

Documentation generated on Thu, 19 Jun 2008 18:48:50 -0400 by phpDocumentor 1.4.2