protected function Tokenizer::text 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::text()
This buffers the current token as character data.
3 calls to Tokenizer::text()
- Tokenizer::characterData in vendor/
masterminds/ html5/ src/ HTML5/ Parser/ Tokenizer.php - Parse anything that looks like character data.
- Tokenizer::rawText in vendor/
masterminds/ html5/ src/ HTML5/ Parser/ Tokenizer.php - Read text in RAW mode.
- Tokenizer::rcdata in vendor/
masterminds/ html5/ src/ HTML5/ Parser/ Tokenizer.php - Read text in RCDATA mode.
File
- vendor/
masterminds/ html5/ src/ HTML5/ Parser/ Tokenizer.php, line 162
Class
- Tokenizer
- The HTML5 tokenizer.
Namespace
Masterminds\HTML5\ParserCode
protected function text() {
$tok = $this->scanner
->current();
// This should never happen...
if ($tok === false) {
return false;
}
// Null
if ($tok === "\0") {
$this
->parseError("Received null character.");
}
// fprintf(STDOUT, "Writing '%s'", $tok);
$this
->buffer($tok);
$this->scanner
->next();
return true;
}