From cb6da5768688773ed56c0b05f27c8529b6dc34c8 Mon Sep 17 00:00:00 2001 From: Matt Farina Date: Mon, 6 May 2013 19:53:16 -0400 Subject: Updated the TEXT_RAW tags to be those specified and those that should act like it. References to the html5 sections included. Note, the pre tag was removed from being treated as raw text. It can often have children (e.g., the code tag) and is specific for display time. Makes me wonder why pre is it's own tag if it's for display. Why not just use styles? --- test/HTML5/Parser/TokenizerTest.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'test/HTML5') diff --git a/test/HTML5/Parser/TokenizerTest.php b/test/HTML5/Parser/TokenizerTest.php index 7ec4c76..10f9f9a 100644 --- a/test/HTML5/Parser/TokenizerTest.php +++ b/test/HTML5/Parser/TokenizerTest.php @@ -389,30 +389,30 @@ class TokenizerTest extends \HTML5\Tests\TestCase { public function testRawText() { $good = array( - '
abcd efg hijk lmnop
' => 'abcd efg hijk lmnop', - '
' => '', - '
<<<<<<<<
' => '<<<<<<<<', - '
hello' => 'hello\nhello" => "\nhello&
' => '&', - '
' => '', - '
' => '', + ' ' => 'abcd efg hijk lmnop', + '' => '', + '' => '<<<<<<<<', + '' => 'hello\nhello" => "\nhello&' => '&', + '' => '', + '' => '', ); foreach ($good as $test => $expects) { $events = $this->parse($test); - $this->assertEventEquals('startTag', 'pre', $events->get(0)); + $this->assertEventEquals('startTag', 'script', $events->get(0)); $this->assertEventEquals('text', $expects, $events->get(1)); - $this->assertEventEquals('endTag', 'pre', $events->get(2)); + $this->assertEventEquals('endTag', 'script', $events->get(2)); } $bad = array( - '
& '&Hello world' => 'Hello world',
+      '