We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3786d4 commit 5fb0b2dCopy full SHA for 5fb0b2d
src/HTML5/Parser/Scanner.php
@@ -104,7 +104,7 @@ public function position()
104
*/
105
public function peek()
106
{
107
- if (($this->char + 1) <= $this->EOF) {
+ if (($this->char + 1) < $this->EOF) {
108
return $this->data[$this->char + 1];
109
}
110
test/HTML5/Parser/TokenizerTest.php
@@ -213,6 +213,7 @@ public function testComment()
213
'<!--Hello' => 'Hello',
214
"<!--\0Hello" => UTF8Utils::FFFD . 'Hello',
215
'<!--' => '',
216
+ '<!--<!--' => '<!--',
217
);
218
foreach ($fail as $test => $expected) {
219
$events = $this->parse($test);
0 commit comments