diff options
author | Zhaofeng Li <[email protected]> | 2015-02-02 10:21:03 +0800 |
---|---|---|
committer | Zhaofeng Li <[email protected]> | 2015-02-02 10:47:35 +0800 |
commit | 7c1c7dfab1b258d0b93975e7abf20de191974ad7 (patch) | |
tree | 41e79117a91d4a64c926b2adf6137f1739f99638 /test/HTML5/Parser | |
parent | 700717e32d20813053f37244ee0b5bb0d0b0180e (diff) |
Allow whitespaces in RCDATA end tags
Fixes #75
Signed-off-by: Zhaofeng Li <[email protected]>
Diffstat (limited to 'test/HTML5/Parser')
-rw-r--r-- | test/HTML5/Parser/TokenizerTest.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/HTML5/Parser/TokenizerTest.php b/test/HTML5/Parser/TokenizerTest.php index 8ff4d5c..3d834fd 100644 --- a/test/HTML5/Parser/TokenizerTest.php +++ b/test/HTML5/Parser/TokenizerTest.php @@ -884,6 +884,12 @@ class TokenizerTest extends \Masterminds\HTML5\Tests\TestCase $this->assertEventEquals('startTag', 'title', $events->get(0)); $this->assertEventEquals('text', 'a test', $events->get(1)); $this->assertEventEquals('endTag', 'title', $events->get(2)); + + // Testing end tags with whitespaces + $events = $this->parse('<title>Whitespaces are tasty</title >'); + $this->assertEventEquals('startTag', 'title', $events->get(0)); + $this->assertEventEquals('text', 'Whitespaces are tasty', $events->get(1)); + $this->assertEventEquals('endTag', 'title', $events->get(2)); } public function testRcdata() |