0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-12-22 08:21:52 +00:00
htmlpurifier/library
Edward Z. Yang fd384129bf Proper support for name attribute in <a> and <img>
Prior to this commit, the name attribute was unilaterally removed, except
for Strict doctypes or a heavy TidyLevel, when it was converted to an id
attribute. As name is actually permitted in both HTML 4.01 Strict and
XHTML 1.0 Strict, although deprecated, the more sensible default behavior
is to allow it unless TidyLevel is heavy.

Our implementation is slightly stricter than the specs, as name attributes are
treated as first class IDs, disallowing <a name="foo" id="foo"> or duplicate
names. The former should be treated as a special case, but that will be
a separate commit.

Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
2008-06-27 15:44:27 -04:00
..
HTMLPurifier Proper support for name attribute in <a> and <img> 2008-06-27 15:44:27 -04:00
HTMLPurifier.auto.php Numerous documentation and test code fixes for HTML Purifier loading 2008-02-17 18:21:45 +00:00
HTMLPurifier.autoload.php - Gracefully error out of obscure bug involving non-static autoloaders 2008-02-18 02:33:50 +00:00
HTMLPurifier.func.php Numerous documentation and test code fixes for HTML Purifier loading 2008-02-17 18:21:45 +00:00
HTMLPurifier.includes.php Proper support for name attribute in <a> and <img> 2008-06-27 15:44:27 -04:00
HTMLPurifier.kses.php [3.1.0] Experimental kses support. 2008-03-13 05:35:57 +00:00
HTMLPurifier.path.php Numerous documentation and test code fixes for HTML Purifier loading 2008-02-17 18:21:45 +00:00
HTMLPurifier.php Release 3.1.1 2008-06-19 21:43:57 +00:00
HTMLPurifier.safe-includes.php Proper support for name attribute in <a> and <img> 2008-06-27 15:44:27 -04:00