diff options
author | Matt Butcher <[email protected]> | 2013-09-15 13:15:46 -0600 |
---|---|---|
committer | Matt Butcher <[email protected]> | 2013-09-15 13:15:46 -0600 |
commit | 59e3ab859e671dca5c103983d94037bf0f8053e0 (patch) | |
tree | bc00decc8b6c1ff39b58368eeae3e073f5a5b503 | |
parent | e7d8e6d3042db2d1f6440b63f9e28e43e05d6517 (diff) |
Committed MrElectronic's change for #17.
Fixed quotedString.
-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) { |