mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-13 01:23:59 +02:00
Implement HTMLT tests, and migrate HTMLPurifierTest to this format.
HTMLT tests are a compact and easy-to-use way of making assertPurification type tests. They take the format of: --INI-- Ns.Directive = "directive value" --HTML-- Input HTML --EXPECT-- Expected HTML Expect more features and migration to be coming soon. Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
This commit is contained in:
5
tests/HTMLPurifier/HTMLT/name.htmlt
Normal file
5
tests/HTMLPurifier/HTMLT/name.htmlt
Normal file
@@ -0,0 +1,5 @@
|
||||
--INI--
|
||||
Attr.EnableID = true
|
||||
HTML.Doctype = "XHTML 1.0 Strict"
|
||||
--HTML--
|
||||
<a name="asdf"></a>
|
Reference in New Issue
Block a user