Skip to content

Commit 1660321

Browse files
committed
test(Tokenizer): add tests for duplicate attribute validation
1 parent 45a6107 commit 1660321

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/HTML5/Parser/TokenizerTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,14 @@ public function testTagAttributes()
705705
),
706706
false,
707707
),
708+
// duplicate attributes must be ignored
709+
'<foo bar="first" bar="second">' => array(
710+
'foo',
711+
array(
712+
'bar' => 'first',
713+
),
714+
false,
715+
),
708716
);
709717
$this->isAllGood('startTag', 2, $good);
710718

0 commit comments

Comments
 (0)