summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTechnosophos <[email protected]>2013-04-18 21:38:39 -0500
committerTechnosophos <[email protected]>2013-04-18 21:38:39 -0500
commit1869b1a34c1aa58770536910e5f3c44c041cff27 (patch)
tree582189c5497fda34d4eb351ebe5928386b6290d5 /src
parentbe2e9dfd6e5c90a54351530a11ac1e7182a04438 (diff)
Fixed attribute tokenizing for 8.1.2.3.
Diffstat (limited to 'src')
-rw-r--r--src/HTML5/Parser/Tokenizer.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/HTML5/Parser/Tokenizer.php b/src/HTML5/Parser/Tokenizer.php
index d98f619..381e9e6 100644
--- a/src/HTML5/Parser/Tokenizer.php
+++ b/src/HTML5/Parser/Tokenizer.php
@@ -405,8 +405,8 @@ class Tokenizer {
//if (strspn($name, '\'\"')) {
$this->parseError("Unexpected characters in attribute name: %s", $name);
}
- // Whitespace not allowed between name and =.
- //$this->scanner->whitespace();
+ // 8.1.2.3
+ $this->scanner->whitespace();
$val = $this->attributeValue();
//return array($name, $val);
@@ -423,8 +423,8 @@ class Tokenizer {
return NULL;
}
$this->scanner->next();
- // Whitespace is significant
- //$this->scanner->whitespace();
+ // 8.1.2.3
+ $this->scanner->whitespace();
$tok = $this->scanner->current();
switch ($tok) {