Update TODO
[htmlpurifier.git] / TODO
blobabb3e36b39a4f32ecfc912c5c34217d0f6ee6f3e
2 TODO List
4 = KEY ====================
5     # Flagship
6     - Regular
7     ? Maybe I'll Do It
8 ==========================
10 If no interest is expressed for a feature that may require a considerable
11 amount of effort to implement, it may get endlessly delayed. Do not be
12 afraid to cast your vote for the next feature to be implemented!
14 - Investigate how early internal structures can be accessed; this would
15   prevent structures from being parsed and serialized multiple times.
16 - Figure out how to simultaneously set %CSS.Trusted and %HTML.Trusted (?)
17 - Merge bugfixes to PHP4
18 - Upgrade Modx module for HTML Purifier 3.1 (HTMLPurifier.php -> HTMLPurifier.auto.php)
19 - Built-in support for target="_blank" on all external links
20 - Make Phorum hide emails
21 - Implement SecureMunge for resources too
22 - Fix text-decoration:none bug
23 - Gitify the repository
25 FUTURE VERSIONS
26 ---------------
28 3.2 release [It's All About Trust] (floating)
29  # Implement untrusted, dangerous elements/attributes
30     - Forms are especially wanted
31  # Implement IDREF support (harder than it seems, since you cannot have
32    IDREFs to non-existent IDs)
33  # Frameset XHTML 1.0 and HTML 4.01 doctypes
34  - Implement <area>
36 3.3 release [Error'ed]
37  # Error logging for filtering/cleanup procedures
38  - XSS-attempt detection--certain errors are flagged XSS-like
40 3.4 release [Do What I Mean, Not What I Say]
41  # Additional support for poorly written HTML
42     - Microsoft Word HTML cleaning (i.e. MsoNormal, but research essential!)
43     - Friendly strict handling of <address> (block -> <br>)
44  ? Remove redundant tags, ex. <u><u>Underlined</u></u>. Implementation notes:
45     1. Analyzing which tags to remove duplicants
46     2. Ensure attributes are merged into the parent tag
47     3. Extend the tag exclusion system to specify whether or not the
48     contents should be dropped or not (currently, there's code that could do
49     something like this if it didn't drop the inner text too.)
50  - Remove <span> tags that don't do anything (no attributes)
51  - Remove empty inline tags<i></i>
52  - Append something to duplicate IDs so they're still usable (impl. note: the
53    dupe detector would also need to detect the suffix as well)
54  - Externalize inline CSS to promote clean HTML, proposed by Sander Tekelenburg
56 4.0 release [Beyond HTML]
57  # Legit token based CSS parsing (will require revamping almost every
58    AttrDef class). Probably will use CSSTidy class?
59  # More control over allowed CSS properties using a modularization
60  # HTML 5 support
61  # IRI support
62  - Standardize token armor for all areas of processing
63  - Convert RTL/LTR override characters to <bdo> tags, or vice versa on demand.
64    Also, enable disabling of directionality
66 5.0 release [To XML and Beyond]
67  - AllowedAttributes and ForbiddenAttributes step on the toes of XML by
68    using periods; this needs to be changed.
69  - Extended HTML capabilities based on namespacing and tag transforms (COMPLEX)
70     - Hooks for adding custom processors to custom namespaced tags and
71       attributes, offer default implementation
72     - Lots of documentation and samples
74 Ongoing
75  - More refactoring to take advantage of PHP5's facilities 
76  - Refactor unit tests into lots of test methods
77  - Plugins for major CMSes (COMPLEX)
78     - phpBB
79     - Drupal needs loving!
80     - Phorum need loving!
81     - more! (look for ones that use WYSIWYGs)
82     - Also, maybe a FAQ for extension writers with HTML Purifier
84 AutoFormat
85  - Smileys
86  - Syntax highlighting (with GeSHi) with <pre> and possibly <?php
87  - Look at http://drupal.org/project/Modules/category/63 for ideas
89 Optimizations
90  - Reduce size of internal data-structures (esp. HTMLDefinition)
91  - Research memory usage of objects versus arrays
92  - Combine multiple strategies into a single, single-pass strategy
93  - Get PH5P working with the latest versions of DOM, which have much more
94    stringent error checking procedures. Maybe convert straight to tokens.
95  - Get rid of set_include_path(). Save this for another major release.
97 Neat feature related
98  ! Factor demo.php into a set of Printer classes, and then create a stub
99    file for users here (inside the actual HTML Purifier library)
100  ! Support exporting configuration, so users can easily tweak settings
101    in the demo, and then copy-paste into their own setup
102  - Advanced URI filtering schemes (see docs/proposal-new-directives.txt)
103  - Allow scoped="scoped" attribute in <style> tags; may be troublesome
104    because regular CSS has no way of uniquely identifying nodes, so we'd
105    have to generate IDs
106  - Explain how to use HTML Purifier in non-PHP languages / create
107    a simple command line stub (or complicated?)
108  - Fixes for Firefox's inability to handle COL alignment props (Bug 915)
109  - Automatically add non-breaking spaces to empty table cells when
110    empty-cells:show is applied to have compatibility with Internet Explorer
111  - Table of Contents generation (XHTML Compiler might be reusable). May also
112    be out-of-band information.
113  - Full set of color keywords. Also, a way to add onto them without
114    finalizing the configuration object.
115  - Write a var_export and memcached DefinitionCache - Denis
117 Maintenance related (slightly boring)
118  # CHMOD install script for PEAR installs
119  ! Factor out command line parser into its own class, and unit test it
120  ! Nested configuration namespaces
121  - Distinguish between default settings and explicitly set settings, so
122    configurations can be merged
123  - Time PHPT tests
125 ChildDef related (very boring)
126  - Abstract ChildDef_BlockQuote to work with all elements that only
127    allow blocks in them, required or optional
128  - Implement lenient <ruby> child validation
130 Wontfix
131  - Non-lossy smart alternate character encoding transformations (unless
132    patch provided)
133  - Pretty-printing HTML: users can use Tidy on the output on entire page
134  - Native content compression, whitespace stripping: use gzip if this is
135    really important