From af6ce63487d541ac6d253b8457432e534f18d9a8 Mon Sep 17 00:00:00 2001 From: xemlock Date: Thu, 25 Apr 2019 20:08:48 +0200 Subject: [PATCH] Add tests for dir global attribute --- tests/HTMLPurifier/HTMLModule/HTML5/BdoTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/HTMLPurifier/HTMLModule/HTML5/BdoTest.php b/tests/HTMLPurifier/HTMLModule/HTML5/BdoTest.php index e3b9274..56bf0c6 100644 --- a/tests/HTMLPurifier/HTMLModule/HTML5/BdoTest.php +++ b/tests/HTMLPurifier/HTMLModule/HTML5/BdoTest.php @@ -22,4 +22,12 @@ public function testBdi() $this->assertPurification('
Foo
'); $this->assertPurification('
Foo
', '
Foo
'); } + + public function testDirAttr() + { + $this->assertPurification('
Foo
'); + $this->assertPurification('Foo'); + $this->assertPurification('

Foo

'); + $this->assertPurification('

Foo

', '

Foo

'); + } }