From a2960d3c4d088440b75d317a14af4d8f7b2bf3a3 Mon Sep 17 00:00:00 2001 From: Technosophos Date: Wed, 17 Apr 2013 21:32:17 -0500 Subject: Fixed bug in whitespace consumer. --- test/HTML5/Parser/TokenizerTest.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/HTML5/Parser/TokenizerTest.php b/test/HTML5/Parser/TokenizerTest.php index adbf457..b70ca53 100644 --- a/test/HTML5/Parser/TokenizerTest.php +++ b/test/HTML5/Parser/TokenizerTest.php @@ -318,7 +318,7 @@ class TokenizerTest extends \HTML5\Tests\TestCase { /** * @depends testCharacterReference */ - public function XXXtestTagAttributes() { + public function testTagAttributes() { $good = array( '' => array('foo', array('bar' => 'baz'), FALSE), '' => array('foo', array('bar' => ' baz '), FALSE), @@ -336,10 +336,12 @@ class TokenizerTest extends \HTML5\Tests\TestCase { ); $this->isAllGood('startTag', 2, $good); + /* $bad = array( '' => array('foo', array('b"' => 'baz'), FALSE), '' => array('foo', array('="bar"' => NULL), FALSE), '' => array('foo', array('bar' => NULL), TRUE), + '' => array('foo', array(), TRUE), '' => array('foo', array('bar' => NULL), FALSE), '