protected function Tokenizer::tagOpen 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::tagOpen()
Emit a tagStart event on encountering a tag.
8.2.4.8
1 call to Tokenizer::tagOpen()
- Tokenizer::consumeData in vendor/
masterminds/ html5/ src/ HTML5/ Parser/ Tokenizer.php - Consume a character and make a move. HTML5 8.2.4.1
File
- vendor/
masterminds/ html5/ src/ HTML5/ Parser/ Tokenizer.php, line 267
Class
- Tokenizer
- The HTML5 tokenizer.
Namespace
Masterminds\HTML5\ParserCode
protected function tagOpen() {
if ($this->scanner
->current() != '<') {
return false;
}
// Any buffered text data can go out now.
$this
->flushBuffer();
$this->scanner
->next();
return $this
->markupDeclaration() || $this
->endTag() || $this
->processingInstruction() || $this
->tagName() || $this
->parseError("Illegal tag opening") || $this
->characterData();
}