function Tokenizer::parse
Same name in this branch
- 11.1.x vendor/theseer/tokenizer/src/Tokenizer.php \TheSeer\Tokenizer\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 79
Class
- Tokenizer
- The HTML5 tokenizer.
Namespace
Masterminds\HTML5\ParserCode
public function parse() {
do {
$this->consumeData();
// FIXME: Add infinite loop protection.
} while ($this->carryOn);
}