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