From 94f597ed847b84fc54d4fc0c2407f97fd679bec5 Mon Sep 17 00:00:00 2001 From: Technosophos Date: Wed, 17 Apr 2013 13:30:10 -0500 Subject: Fixed broken tag test. --- src/HTML5/Parser/Tokenizer.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/HTML5/Parser/Tokenizer.php b/src/HTML5/Parser/Tokenizer.php index 7411551..834039b 100644 --- a/src/HTML5/Parser/Tokenizer.php +++ b/src/HTML5/Parser/Tokenizer.php @@ -337,6 +337,10 @@ class Tokenizer { $this->scanner->next(); return TRUE; } + if ($this->scanner->current() === FALSE) { + $this->parseError("Unexpected EOF inside of tag."); + return TRUE; + } // Basically, we skip the / token and go on. // See 8.2.4.43. $this->parseError("Unexpected '%s' inside of a tag.", $this->scanner->current()); -- cgit v1.2.3