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:
@@ -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);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user