diff options
author | Asmir Mustafic <[email protected]> | 2017-07-26 17:10:45 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2017-07-26 17:10:45 +0300 |
commit | df71b47d1755e41e6ad29255caba7e13e7413139 (patch) | |
tree | 388ecee504f964a68a93ebd01908a6f95d4396a9 /test/HTML5/Parser/TokenizerTest.php | |
parent | 5f2ef1d0060f652833ef251627c6c7f7c23e2728 (diff) | |
parent | 2c3485139131607f43db07d989ae5a600f8291ab (diff) |
Merge pull request #132 from Masterminds/i-131
Allow entity references containing numbers
Diffstat (limited to 'test/HTML5/Parser/TokenizerTest.php')
-rw-r--r-- | test/HTML5/Parser/TokenizerTest.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/HTML5/Parser/TokenizerTest.php b/test/HTML5/Parser/TokenizerTest.php index 9175ddf..f2f612c 100644 --- a/test/HTML5/Parser/TokenizerTest.php +++ b/test/HTML5/Parser/TokenizerTest.php @@ -940,6 +940,10 @@ class TokenizerTest extends \Masterminds\HTML5\Tests\TestCase $events = $this->parse('a&b'); $this->assertEquals(2, $events->depth(), "Events: " . print_r($events, true)); $this->assertEventEquals('text', 'a&b', $events->get(0)); + + $events = $this->parse('a²b'); + $this->assertEquals(2, $events->depth(), "Events: " . print_r($events, true)); + $this->assertEventEquals('text', 'a²b', $events->get(0)); } // ================================================================ |