Abstract Class HTMLPurifier_Token
Inheritance | HTMLPurifier_Token |
---|---|
Subclasses | HTMLPurifier_Token_Comment, HTMLPurifier_Token_Empty, HTMLPurifier_Token_End, HTMLPurifier_Token_Start, HTMLPurifier_Token_Tag, HTMLPurifier_Token_Text |
Abstract base token class that all others inherit from.
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$armor | Lookup array of processing that this token is exempt from. | HTMLPurifier_Token | |
$carryover | HTMLPurifier_Token | ||
$col | Column of line node was on in source document. Null if unknown. | HTMLPurifier_Token | |
$line | Line number node was on in source document. Null if unknown. | HTMLPurifier_Token | |
$rewind | HTMLPurifier_Token | ||
$skip | Used during MakeWellFormed. | HTMLPurifier_Token |
Public Methods
Method | Description | Defined By |
---|---|---|
__get() | HTMLPurifier_Token | |
position() | Sets the position of the token in the source document. | HTMLPurifier_Token |
rawPosition() | Convenience function for DirectLex settings line/col position. | HTMLPurifier_Token |
toNode() | Converts a token into its corresponding node. | HTMLPurifier_Token |
Property Details
Currently, valid values are "ValidateAttributes" and "MakeWellFormed_TagClosedError"
Method Details
public null|string __get ( $n ) | ||
$n | string |
Sets the position of the token in the source document.
public void position ( $l = null, $c = null ) | ||
$l | int | |
$c | int |
Convenience function for DirectLex settings line/col position.
public void rawPosition ( $l, $c ) | ||
$l | int | |
$c | int |
Converts a token into its corresponding node.
public abstract void toNode ( ) |