diff options
author | KITAITI Makoto <[email protected]> | 2014-05-25 06:12:48 +0900 |
---|---|---|
committer | KITAITI Makoto <[email protected]> | 2014-05-25 06:12:48 +0900 |
commit | 7bf3cfe1592f6774978eee3ea5f67e3df37b69eb (patch) | |
tree | 14740d5e12abe9933823e9f56672c8db2a3edbff /test/HTML5/Parser | |
parent | 06027f5e4929b6e0c200bd8337ab73baa915beda (diff) |
Parse RCDATA the right way
Diffstat (limited to 'test/HTML5/Parser')
-rw-r--r-- | test/HTML5/Parser/TokenizerTest.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/HTML5/Parser/TokenizerTest.php b/test/HTML5/Parser/TokenizerTest.php index 54f9786..0990204 100644 --- a/test/HTML5/Parser/TokenizerTest.php +++ b/test/HTML5/Parser/TokenizerTest.php @@ -535,6 +535,13 @@ class TokenizerTest extends \HTML5\Tests\TestCase { } + public function testRcdata() { + list($tok, $events) = $this->createTokenizer('<title>'<!-- not a comment --></TITLE>'); + $tok->setTextMode(\HTML5\Elements::TEXT_RCDATA, 'title'); + $tok->parse(); + $this->assertEventEquals('text', "'<!-- not a comment -->", $events->get(1)); + } + public function testText() { $events = $this->parse('a<br>b'); |