summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTechnosophos <[email protected]>2013-04-17 13:30:10 -0500
committerTechnosophos <[email protected]>2013-04-17 13:30:10 -0500
commit94f597ed847b84fc54d4fc0c2407f97fd679bec5 (patch)
tree10174b9362eb743ce419719f3b17e5003be1184b /src
parent3761c75e004964cb2b75afedaddd9a3dd3dc426c (diff)
Fixed broken tag test.
Diffstat (limited to 'src')
-rw-r--r--src/HTML5/Parser/Tokenizer.php4
1 files changed, 4 insertions, 0 deletions
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());