From 1869b1a34c1aa58770536910e5f3c44c041cff27 Mon Sep 17 00:00:00 2001 From: Technosophos Date: Thu, 18 Apr 2013 21:38:39 -0500 Subject: Fixed attribute tokenizing for 8.1.2.3. --- test/HTML5/Parser/TokenizerTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/HTML5/Parser/TokenizerTest.php') 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 { '' => array('doe', array('a' => NULL, 'deer' => NULL), FALSE), '' => array('foo', array('bar' => 'baz'), FALSE), + // Updated for 8.1.2.3 + '' => array('foo', array('bar' => 'baz'), FALSE), + // The spec allows an unquoted value '/'. This will not be a closing // tag. '' => array('foo', array('bar' => '/'), FALSE), @@ -374,7 +377,6 @@ class TokenizerTest extends \HTML5\Tests\TestCase { $reallyBad = array( '' => array('foo', array('=' => NULL, '"bar"' => NULL), FALSE), '' => array('foo', array(), TRUE), - '' => array('foo', array('bar' => NULL, '=' => NULL, '"baz"' => NULL), FALSE), ); foreach ($reallyBad as $test => $expects) { $events = $this->parse($test); -- cgit v1.2.3