public function TokenizerTest::testIllegalTagNames in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/masterminds/html5/test/HTML5/Parser/TokenizerTest.php \Masterminds\HTML5\Tests\Parser\TokenizerTest::testIllegalTagNames()
File
- vendor/
masterminds/ html5/ test/ HTML5/ Parser/ TokenizerTest.php, line 551
Class
Namespace
Masterminds\HTML5\Tests\ParserCode
public function testIllegalTagNames() {
$cases = array(
'<li">' => 'li',
'<p">' => 'p',
'<b >' => 'b',
'<static*all>' => 'static',
'<h*0720/>' => 'h',
'<st*ATTRIBUTE />' => 'st',
);
foreach ($cases as $html => $expected) {
$events = $this
->parse($html);
$this
->assertEventError($events
->get(0));
$this
->assertEventEquals('startTag', $expected, $events
->get(1));
}
}