diff options
-rw-r--r-- | CREDITS | 3 | ||||
-rw-r--r-- | src/HTML5/Parser/Tokenizer.php | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -2,4 +2,5 @@ Matt Butcher [technosophos] <[email protected]> (lead) Matt Farina [mattfarina] <[email protected]> (lead) Kukhar Vasily [ngreduce] <[email protected]> (contributor) Geoffrey Sneddon [gsnedders] <[email protected]> (contributor) -Edward Z. Yang [ezyang] <[email protected]> (contributor)
\ No newline at end of file +Edward Z. Yang [ezyang] <[email protected]> (contributor) +Rune Christensen [MrElectronic] <[email protected]> (contributor) diff --git a/src/HTML5/Parser/Tokenizer.php b/src/HTML5/Parser/Tokenizer.php index 7d6fd68..fe248aa 100644 --- a/src/HTML5/Parser/Tokenizer.php +++ b/src/HTML5/Parser/Tokenizer.php @@ -714,7 +714,7 @@ class Tokenizer { */ protected function quotedString($stopchars) { $tok = $this->scanner->current(); - if ($tok == '"' || "'") { + if ($tok == '"' || $tok == "'") { $this->scanner->next(); $ret = $this->scanner->charsUntil($tok . $stopchars); if ($this->scanner->current() == $tok) { |