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

Reuse attribute definitions to define a few more attributes.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@168 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2006-08-05 22:14:19 +00:00
parent a4ce51cca2
commit fdc838c75e
2 changed files with 54 additions and 8 deletions

View File

@@ -63,10 +63,23 @@ class HTMLPurifier_Strategy_ValidateAttributesTest extends
$inputs[11] = '<span lang="fr">La soupe.</span>';
$expect[11] = '<span lang="fr" xml:lang="fr">La soupe.</span>';
// test align (won't work till CSS validation is fixed)
// test align (won't work till CSS validation is implemented)
// $inputs[12] = '<h1 align="center">Centered Headline</h1>';
// $expect[12] = '<h1 style="text-align:center;">Centered Headline</h1>';
// test table
$inputs[13] = <<<HTML
<table frame="above" rules="rows" summary="A test table">
<tr valign="top">
<th abbr="super" align="left">Supercalifragilistic</th>
</tr>
<tr>
<td abbr="one">Cell one</td>
</tr>
</table>
HTML;
$expect[13] = $inputs[13];
$this->assertStrategyWorks($strategy, $inputs, $expect, $config);
}