You are here

public function TokenizerTest::testRcdata in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/masterminds/html5/test/HTML5/Parser/TokenizerTest.php \Masterminds\HTML5\Tests\Parser\TokenizerTest::testRcdata()

File

vendor/masterminds/html5/test/HTML5/Parser/TokenizerTest.php, line 895

Class

TokenizerTest

Namespace

Masterminds\HTML5\Tests\Parser

Code

public function testRcdata() {
  list($tok, $events) = $this
    ->createTokenizer('<title>&#x27;<!-- not a comment --></TITLE>');
  $tok
    ->setTextMode(\Masterminds\HTML5\Elements::TEXT_RCDATA, 'title');
  $tok
    ->parse();
  $this
    ->assertEventEquals('text', "'<!-- not a comment -->", $events
    ->get(1));
}