1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-07-31 19:30:21 +02:00

[1.6.0] Implement width/height attribute transforms with Length.php

- Also, enabled 'height' CSS attribute

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@922 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2007-03-29 23:48:54 +00:00
parent 1102dc6e27
commit 058f1eba7d
8 changed files with 96 additions and 6 deletions

View File

@@ -179,6 +179,12 @@ class HTMLPurifier_Strategy_ValidateAttributesTest extends
array('HTML.EnableAttrID' => true)
);
// lengths
$this->assertResult(
'<td height="10" width="5%" /><th height="5%" width="10" /><hr width="10" height="10" />',
'<td style="height:10px;width:5%;" /><th style="height:5%;width:10px;" /><hr style="width:10px;" />'
);
}
}