Release 1.5.0 (bumped HTMLPurifier.php version number).
[htmlpurifier.git] / TODO
blob436f4fd93ab289f26d73bae2004344de64745fbe
2 TODO List
4 = KEY ====================
5     # Flagship
6     - Regular
7     ? At-risk
8 ==========================
10 1.6 release
11  # Implement all non-essential attribute transforms, configurable
12  # URI validation routines tighter (see docs/dev-code-quality.html) (COMPLEX)
13  # Advanced URI filtering schemes (see docs/proposal-new-directives.txt)
14  # Error logging for filtering/cleanup procedures
15     - Requires I18N facilities to be created first (COMPLEX)
16  ? Configuration profiles: sets of directives that get set with one func call
17  - XSS-attempt detection
18  - Implement IDREF support
20 1.7 release
21  # Add pre-packaged "levels" of cleaning (custom behavior already done)
22  - More fine-grained control over escaping behavior
23     - Silently drop content inbetween SCRIPT tags (can be generalized to allow
24       specification of elements that, when detected as foreign, trigger removal
25       of children, although unbalanced tags could wreck havoc (or at least
26       delete the rest of the document)).
27  - Allow specifying global attributes on a tag-by-tag basis in
28    %HTML.AllowAttributes
29  ? More user-friendly warnings when %HTML.Allow* attempts to specify a
30    tag or attribute that is not supported
31  - Parse TinyMCE whitelist into our %HTML.Allow* whitelists
33 1.8 release
34  # Additional support for poorly written HTML
35     - Microsoft Word HTML cleaning (i.e. MsoNormal, but research essential!)
36     - Friendly strict handling of <address> (block -> <br>)
37  - Remove redundant tags, ex. <u><u>Underlined</u></u>. Implementation notes:
38     1. Analyzing which tags to remove duplicants
39     2. Ensure attributes are merged into the parent tag
40     3. Extend the tag exclusion system to specify whether or not the
41     contents should be dropped or not (currently, there's code that could do
42     something like this if it didn't drop the inner text too.)
43  - Remove <span> tags that don't do anything (no attributes)
44  - Remove empty inline tags<i></i>
45  - Append something to duplicate IDs so they're still usable (impl. note: the
46    dupe detector would also need to detect the suffix as well)
48 2.0 release
49  # Legit token based CSS parsing (will require revamping almost every
50    AttrDef class)
51  # Formatters for plaintext (COMPLEX)
52     - Auto-paragraphing (be sure to leverage fact that we know when things
53       shouldn't be paragraphed, such as lists and tables).
54     - Linkify URLs
55     - Smileys
56     - Linkification for HTML Purifier docs: notably configuration and classes
58 3.0 release
59  - Extended HTML capabilities based on namespacing and tag transforms (COMPLEX)
60     - Hooks for adding custom processors to custom namespaced tags and
61       attributes, offer default implementation
62     - Lots of documentation and samples
63  - Allow tags to be "armored", an internal flag that protects them
64    from validation and passes them out unharmed
65  - XHTML 1.1 support
66  - Fixes for Firefox's inability to handle COL alignment props (Bug 915)
67  - Automatically add non-breaking spaces to empty table cells when
68    empty-cells:show is applied to have compatibility with Internet Explorer
69  - Convert RTL/LTR override characters to <bdo> tags, or vice versa on demand.
70    Also, enable disabling of directionality
72 Ongoing
73  - Lots of profiling, make it faster!
74  - Plugins for major CMSes (COMPLEX)
75     - WordPress
76     - eFiction
77     - more! (look for ones that use WYSIWYGs)
79 Unknown release (on a scratch-an-itch basis)
80  - Have 'lang' attribute be checked against official lists
81  ? Semi-lossy dumb alternate character encoding transformations, achieved by
82    encoding all characters that have string entity equivalents
84 Requested
85  ? Native content compression, whitespace stripping (don't rely on Tidy, make
86    sure we don't remove from <pre> or related tags)
88 Wontfix
89  - Non-lossy smart alternate character encoding transformations (unless
90    patch provided)
91  - Pretty-printing HTML, users can use Tidy on the output on entire page