summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Butcher <[email protected]>2013-09-15 13:15:46 -0600
committerMatt Butcher <[email protected]>2013-09-15 13:15:46 -0600
commit59e3ab859e671dca5c103983d94037bf0f8053e0 (patch)
treebc00decc8b6c1ff39b58368eeae3e073f5a5b503
parente7d8e6d3042db2d1f6440b63f9e28e43e05d6517 (diff)
Committed MrElectronic's change for #17.
Fixed quotedString.
-rw-r--r--CREDITS3
-rw-r--r--src/HTML5/Parser/Tokenizer.php2
2 files changed, 3 insertions, 2 deletions
diff --git a/CREDITS b/CREDITS
index 0c989b5..193bc34 100644
--- a/CREDITS
+++ b/CREDITS
@@ -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) {