Skip to content

Commit

Permalink
Add tests for dir global attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
xemlock committed Apr 25, 2019
1 parent 68ee8cf commit af6ce63
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/HTMLPurifier/HTMLModule/HTML5/BdoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,12 @@ public function testBdi()
$this->assertPurification('<div><bdi>Foo</bdi></div>');
$this->assertPurification('<bdi><div>Foo</div></bdi>', '<bdi></bdi><div>Foo</div>');
}

public function testDirAttr()
{
$this->assertPurification('<div dir="auto">Foo</div>');
$this->assertPurification('<span dir="ltr">Foo</span>');
$this->assertPurification('<p dir="rtl">Foo</p>');
$this->assertPurification('<p dir="foo">Foo</p>', '<p>Foo</p>');
}
}

0 comments on commit af6ce63

Please sign in to comment.