HTMLPurifier 4.4.0
HTMLPurifier_AttrDef_HTML_ID Class Reference

Validates the HTML attribute ID. More...

Inheritance diagram for HTMLPurifier_AttrDef_HTML_ID:
HTMLPurifier_AttrDef HTMLPurifier_AttrDef

List of all members.

Public Member Functions

 __construct ($selector=false)
 validate ($id, $config, $context)
 Validates and cleans passed string according to a definition.
 __construct ($selector=false)
 validate ($id, $config, $context)
 Validates and cleans passed string according to a definition.

Protected Attributes

 $selector
 Determines whether or not we're validating an ID in a CSS selector context.

Detailed Description

Validates the HTML attribute ID.

Warning:
Even though this is the id processor, it will ignore the directive Attr:IDBlacklist, since it will only go according to the ID accumulator. Since the accumulator is automatically generated, it will have already absorbed the blacklist. If you're hacking around, make sure you use load()!

Definition at line 12 of file ID.php.


Constructor & Destructor Documentation

HTMLPurifier_AttrDef_HTML_ID::__construct ( selector = false)

Definition at line 24 of file ID.php.

References $selector.

HTMLPurifier_AttrDef_HTML_ID::__construct ( selector = false)

Definition at line 10137 of file HTMLPurifier.standalone.php.

References $selector.


Member Function Documentation

HTMLPurifier_AttrDef_HTML_ID::validate ( string,
config,
context 
)

Validates and cleans passed string according to a definition.

Parameters:
$stringString to be validated and cleaned.
$configMandatory HTMLPurifier_Config object.
$contextMandatory HTMLPurifier_AttrContext object.

Reimplemented from HTMLPurifier_AttrDef.

Definition at line 28 of file ID.php.

References $config.

HTMLPurifier_AttrDef_HTML_ID::validate ( string,
config,
context 
)

Validates and cleans passed string according to a definition.

Parameters:
$stringString to be validated and cleaned.
$configMandatory HTMLPurifier_Config object.
$contextMandatory HTMLPurifier_AttrContext object.

Reimplemented from HTMLPurifier_AttrDef.

Definition at line 10141 of file HTMLPurifier.standalone.php.

References $config.


Member Data Documentation

HTMLPurifier_AttrDef_HTML_ID::$selector [protected]

Determines whether or not we're validating an ID in a CSS selector context.

Definition at line 22 of file ID.php.

Referenced by __construct().


The documentation for this class was generated from the following files: