We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7a954d commit 7ac198dCopy full SHA for 7ac198d
src/HTML5/Parser/Tokenizer.php
@@ -124,8 +124,10 @@ protected function consumeData()
124
// Character reference
125
$this->characterReference();
126
127
+ $tok = $this->scanner->current();
128
+
129
// Parse tag
- if ($this->scanner->current() === '<') {
130
+ if ($tok === '<') {
131
// Any buffered text data can go out now.
132
$this->flushBuffer();
133
@@ -138,10 +140,11 @@ protected function consumeData()
138
140
// This always returns false.
139
141
|| $this->parseError("Illegal tag opening")
142
|| $this->characterData();
143
144
145
}
146
147
// Handle end of document
- $tok = $this->scanner->current();
148
$this->eof($tok);
149
150
// Parse character
0 commit comments