public function Tokenizer::parse in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/masterminds/html5/src/HTML5/Parser/Tokenizer.php \Masterminds\HTML5\Parser\Tokenizer::parse()
Begin parsing.
This will begin scanning the document, tokenizing as it goes. Tokens are emitted into the event handler.
Tokenizing will continue until the document is completely read. Errors are emitted into the event handler, but the parser will attempt to continue parsing until the entire input stream is read.
File
- vendor/
masterminds/ html5/ src/ HTML5/ Parser/ Tokenizer.php, line 78
Class
- Tokenizer
- The HTML5 tokenizer.
Namespace
Masterminds\HTML5\ParserCode
public function parse() {
$p = 0;
do {
$p = $this->scanner
->position();
$this
->consumeData();
// FIXME: Add infinite loop protection.
} while ($this->carryOn);
}