mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-10 17:26:25 +02:00
[1.7.0] Fix bug in HTMLPurifier_Harness that causes certain aspects of $input to change after parsing
- Add makeLookup() convenience function to HTMLModule - Relocate SGML exclusion comment - Add preliminary Bdo module test git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1049 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
30
tests/HTMLPurifier/HTMLModule/BdoTest.php
Normal file
30
tests/HTMLPurifier/HTMLModule/BdoTest.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
require_once 'HTMLPurifier/HTMLModuleHarness.php';
|
||||
|
||||
class HTMLPurifier_HTMLModule_BdoTest extends HTMLPurifier_HTMLModuleHarness
|
||||
{
|
||||
|
||||
function test() {
|
||||
|
||||
$this->assertResult(
|
||||
'<span>
|
||||
<bdo
|
||||
id="test-id"
|
||||
class="class-name"
|
||||
style="font-weight:bold;"
|
||||
title="Title of tag"
|
||||
lang="en"
|
||||
xml:lang="en"
|
||||
dir="rtl"
|
||||
>
|
||||
#PCDATA <span>Inline</span>
|
||||
</bdo>
|
||||
</span>', true, array('Attr.EnableID' => true)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user