diff options
author | Titouan Galopin <[email protected]> | 2018-11-06 10:35:50 +0100 |
---|---|---|
committer | Titouan Galopin <[email protected]> | 2018-11-06 10:35:50 +0100 |
commit | 7ac198d906b00f5147dd1753521a914eb336b348 (patch) | |
tree | 13c32ead70c802aa3968e3df7b0904d81f8621db /src | |
parent | f7a954df2f0647c93b1d3d22c317aa5297ea4b05 (diff) |
Remove another current call
Diffstat (limited to 'src')
-rw-r--r-- | src/HTML5/Parser/Tokenizer.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/HTML5/Parser/Tokenizer.php b/src/HTML5/Parser/Tokenizer.php index d08cba4..b413b52 100644 --- a/src/HTML5/Parser/Tokenizer.php +++ b/src/HTML5/Parser/Tokenizer.php @@ -124,8 +124,10 @@ class Tokenizer // Character reference $this->characterReference(); + $tok = $this->scanner->current(); + // Parse tag - if ($this->scanner->current() === '<') { + if ($tok === '<') { // Any buffered text data can go out now. $this->flushBuffer(); @@ -138,10 +140,11 @@ class Tokenizer // This always returns false. || $this->parseError("Illegal tag opening") || $this->characterData(); + + $tok = $this->scanner->current(); } // Handle end of document - $tok = $this->scanner->current(); $this->eof($tok); // Parse character |