mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Fix #2194 allow <details> amd <summary> tags
This commit is contained in:
parent
741f725bcf
commit
5ae810a54c
2 changed files with 7 additions and 0 deletions
|
|
@ -83,6 +83,10 @@ class HTMLFilterTest extends \Codeception\TestCase\Test
|
|||
$source = '<div contenteditable="true"><div contenteditable="false"><p contenteditable="false"></p></div></div>';
|
||||
$target = '<div><div contenteditable="false"><p contenteditable="false"></p></div></div>';
|
||||
$this->assertEquals($target, Rhymix\Framework\Filters\HTMLFilter::clean($source));
|
||||
|
||||
$source = '<details open><summary>Summary</summary><div>Content</div><p>Paragraph</p></details>';
|
||||
$target = '<details open=""><summary>Summary</summary><div>Content</div><p>Paragraph</p></details>';
|
||||
$this->assertEquals($target, Rhymix\Framework\Filters\HTMLFilter::clean($source));
|
||||
}
|
||||
|
||||
public function testHTMLFilterCSS3()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue