class (none) \ HTML5_Tokenizer



Method Summary

Name Description
__construct($data, $builder = null)
characterReferenceInAttributeValue($allowed = false)
consumeCharacterReference($allowed = false, $inattr = false)
emitToken($token, $checkStream = true, $dry = false) Emits a token, passing it on to the tree builder.
parse() Performs the actual parsing of the document.
parseFragment($context = null)
save() Returns a serialized representation of the tree.
stream() Returns the input stream.

public function __construct($data, $builder = null)

Parameters:
$data - Data to parse
Defaults:
builder = null

private function characterReferenceInAttributeValue($allowed = false)

Defaults:
allowed = false

private function consumeCharacterReference($allowed = false, $inattr = false)

Defaults:
allowed = false
inattr = false

protected function emitToken($token, $checkStream = true, $dry = false)

Emits a token, passing it on to the tree builder.

Defaults:
checkStream = true
dry = false

public function parse()

Performs the actual parsing of the document.


public function parseFragment($context = null)

Defaults:
context = null

public function save()

Returns a serialized representation of the tree.


public function stream()

Returns the input stream.