Toss an iframe in the initial configuration to throw monkey wrenches around.
1 unresolved thread
Let's get a test running.. Closes #3410303
Merge request reports
Activity
579 579 $this->assertNormalized($f, '<a>link</a>', 'HTML filter removes allowed attributes that have a not explicitly allowed value.'); 580 580 $f = (string) $filter->process('<a href="/beautiful-animals" kitten="cute" llama="epic majestical">link</a>', Language::LANGCODE_NOT_SPECIFIED); 581 581 $this->assertSame('<a href="/beautiful-animals" llama="epic majestical">link</a>', $f, 'HTML filter keeps explicitly allowed attributes with an attribute value that is also explicitly allowed.'); 582 583 // Allow iframes and check that the subsequent tags are parsed correctly. 584 $filter->setConfiguration([ 585 'settings' => [ 586 'allowed_html' => '<iframe> <a href llama>', 587 'filter_html_help' => 1, 588 'filter_html_nofollow' => 0, 589 ], 590 ]); 591 $f = (string) $filter->process('<a kitten="cute" llama="awesome">link</a>', Language::LANGCODE_NOT_SPECIFIED); 592 $this->assertNormalized($f, '<a llama="awesome">link</a>'); added 1 commit
- 19f657e9 - Revert "Add unit test coverage for a second attribute."
added 2 commits
Please register or sign in to reply