1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-08-04 21:28:06 +02:00

[1.6.0] Add support for LinkTypes, used for rel and rev attributes.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@924 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2007-03-31 02:58:16 +00:00
parent 1532fe703a
commit e2c3394d70
6 changed files with 111 additions and 2 deletions

View File

@@ -185,6 +185,13 @@ class HTMLPurifier_Strategy_ValidateAttributesTest extends
'<td style="height:10px;width:5%;" /><th style="height:5%;width:10px;" /><hr style="width:10px;" />'
);
// link types
$this->assertResult(
'<a href="foo" rel="nofollow" />',
true,
array('Attr.AllowedRel' => 'nofollow')
);
}
}