diff options
author | Technosophos <[email protected]> | 2013-04-18 21:38:39 -0500 |
---|---|---|
committer | Technosophos <[email protected]> | 2013-04-18 21:38:39 -0500 |
commit | 1869b1a34c1aa58770536910e5f3c44c041cff27 (patch) | |
tree | 582189c5497fda34d4eb351ebe5928386b6290d5 /test/HTML5/Parser | |
parent | be2e9dfd6e5c90a54351530a11ac1e7182a04438 (diff) |
Fixed attribute tokenizing for 8.1.2.3.
Diffstat (limited to 'test/HTML5/Parser')
-rw-r--r-- | test/HTML5/Parser/TokenizerTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/HTML5/Parser/TokenizerTest.php b/test/HTML5/Parser/TokenizerTest.php index eb94035..aff819e 100644 --- a/test/HTML5/Parser/TokenizerTest.php +++ b/test/HTML5/Parser/TokenizerTest.php @@ -336,6 +336,9 @@ class TokenizerTest extends \HTML5\Tests\TestCase { '<doe a deer>' => array('doe', array('a' => NULL, 'deer' => NULL), FALSE), '<foo bar=baz>' => array('foo', array('bar' => 'baz'), FALSE), + // Updated for 8.1.2.3 + '<foo bar = "baz" >' => array('foo', array('bar' => 'baz'), FALSE), + // The spec allows an unquoted value '/'. This will not be a closing // tag. '<foo bar=/>' => array('foo', array('bar' => '/'), FALSE), @@ -374,7 +377,6 @@ class TokenizerTest extends \HTML5\Tests\TestCase { $reallyBad = array( '<foo ="bar">' => array('foo', array('=' => NULL, '"bar"' => NULL), FALSE), '<foo////>' => array('foo', array(), TRUE), - '<foo bar = "baz" >' => array('foo', array('bar' => NULL, '=' => NULL, '"baz"' => NULL), FALSE), ); foreach ($reallyBad as $test => $expects) { $events = $this->parse($test); |