summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTechnosophos <[email protected]>2013-04-17 21:32:17 -0500
committerTechnosophos <[email protected]>2013-04-17 21:32:17 -0500
commita2960d3c4d088440b75d317a14af4d8f7b2bf3a3 (patch)
tree1d0230976e0c466f2079f355dd44af6cfaf2e472 /test
parent166a8f7cd72900d15370c065b57b15ac5c4010f7 (diff)
Fixed bug in whitespace consumer.
Diffstat (limited to 'test')
-rw-r--r--test/HTML5/Parser/TokenizerTest.php8
1 files changed, 7 insertions, 1 deletions
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(
'<foo bar="baz">' => array('foo', array('bar' => 'baz'), FALSE),
'<foo bar=" baz ">' => array('foo', array('bar' => ' baz '), FALSE),
@@ -336,10 +336,12 @@ class TokenizerTest extends \HTML5\Tests\TestCase {
);
$this->isAllGood('startTag', 2, $good);
+ /*
$bad = array(
'<foo b"="baz">' => array('foo', array('b"' => 'baz'), FALSE),
'<foo ="bar">' => array('foo', array('="bar"' => NULL), FALSE),
'<foo bar=/>' => array('foo', array('bar' => NULL), TRUE),
+ '<foo////>' => array('foo', array(), TRUE),
'<foo bar=>' => array('foo', array('bar' => NULL), FALSE),
'<foo bar="oh' => array('foo', array('bar' => 'oh'), FALSE),
'<foo bar=baz>' => array('foo', array('bar' => 'baz'), FALSE),
@@ -353,6 +355,7 @@ class TokenizerTest extends \HTML5\Tests\TestCase {
$this->assertEventError($events->get(0));
$this->assertEventEquals('startTag', $expects, $events->get(1));
}
+ */
}
public function testText() {
@@ -361,6 +364,9 @@ class TokenizerTest extends \HTML5\Tests\TestCase {
'<a>test</a>',
'a<![[ test ]]>b',
'a&amp;b',
+ 'a&b',
+ 'a& b& c',
+
);
$this->markTestIncomplete("Need tag parsing first.");
}