Make flush use its input executable
[htmlpurifier.git] / TODO
blobb7be77fb0052e85ceadc1f03bc7a3735788bef99
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 required 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!
15 UPCOMING RELEASE
16 ----------------
18 IMPORTANT
19  - Release candidate, because of the major changes
21 DOCUMENTATION
22  - Update French translation of README
24 IMPORTANT FEATURES
25  - Get everything into configuration objects (filters, I'm looking at you)
26  - Factor out command line parser into its own class, and unit test it
27  - Figure out autoload and PEAR
29 CONFIGDOC
30  - Properly integrate new ConfigSchema system into configdoc. DESCRIPTIONS
31    ARE CURRENTLY BROKEN AND NEED TO BE FIXED!!! (Configdoc
32    should directly read the configuration files, or at the very least should
33    not use static functions)
34  - Have configdoc use version and deprecated information (hide deprecated
35    info, for example)
36  - Implement source code sniffing for configdoc, so we can easily figure out
37    which files use what configuration (we'll rely on the $config convention)
39 NICE FEATURES
40  - Factor demo.php into a set of Printer classes, and then create a stub
41    file for users here (inside the actual HTML Purifier library)
42  - Support exporting configuration, so users can easily tweak settings
43    in the demo, and then copy-paste into their own setup
45 BUGS
46  - Style attribute height/width limiting for images
47  - Easy way to blacklist elements and attributes
48  - Investigate iconv error emitting
49  - Investigate UTF-8 optimization <http://htmlpurifier.org/phorum/read.php?3,1496>
50  - Figure out what to do about target="" and name="", since they show up so often
51  - Update htmLawed comparison
53 FUTURE VERSIONS
54 ---------------
56 3.2 release [Error'ed]
57  # Error logging for filtering/cleanup procedures
58  - XSS-attempt detection
60 3.3 release [Do What I Mean, Not What I Say]
61  # Additional support for poorly written HTML
62     - Microsoft Word HTML cleaning (i.e. MsoNormal, but research essential!)
63     - Friendly strict handling of <address> (block -> <br>)
64  - Remove redundant tags, ex. <u><u>Underlined</u></u>. Implementation notes:
65     1. Analyzing which tags to remove duplicants
66     2. Ensure attributes are merged into the parent tag
67     3. Extend the tag exclusion system to specify whether or not the
68     contents should be dropped or not (currently, there's code that could do
69     something like this if it didn't drop the inner text too.)
70  - Remove <span> tags that don't do anything (no attributes)
71  - Remove empty inline tags<i></i>
72  - Append something to duplicate IDs so they're still usable (impl. note: the
73    dupe detector would also need to detect the suffix as well)
74  - Externalize inline CSS to promote clean HTML
76 3.4 release [It's All About Trust] (floating)
77  # Implement untrusted, dangerous elements/attributes
78     - Objects and Forms are especially wanted
79  # Implement IDREF support (harder than it seems, since you cannot have
80    IDREFs to non-existent IDs)
81  # Frameset XHTML 1.0 and HTML 4.01 doctypes
83 4.0 release [Beyond HTML]
84  # Legit token based CSS parsing (will require revamping almost every
85    AttrDef class). Probably will use CSSTidy class
86  # More control over allowed CSS properties (maybe modularize it in the
87    same fashion!)
88  # HTML 5 support
89  - Standardize token armor for all areas of processing
90  - Convert RTL/LTR override characters to <bdo> tags, or vice versa on demand.
91    Also, enable disabling of directionality
92  - Table of Contents generation (XHTML Compiler might be reusable)
94 5.0 release [To XML and Beyond]
95  - Extended HTML capabilities based on namespacing and tag transforms (COMPLEX)
96     - Hooks for adding custom processors to custom namespaced tags and
97       attributes, offer default implementation
98     - Lots of documentation and samples
100 Ongoing
101  - More refactoring to take advantage of PHP5's facilities 
102  - Lots of profiling, make it faster!
103  - Plugins for major CMSes (COMPLEX)
104     - phpBB
105     - more! (look for ones that use WYSIWYGs)
106  - Complete basic smoketests
108 AutoFormat
109  - Smileys
110  - Syntax highlighting with <pre> and possibly <?php
111  - Look at http://drupal.org/project/Modules/category/63 for ideas
113 Unknown release (on a scratch-an-itch basis)
114  # CHMOD install script for PEAR installs
115  ? Have 'lang' attribute be checked against official lists, achieved by
116    encoding all characters that have string entity equivalents
117  - Abstract ChildDef_BlockQuote to work with all elements that only
118    allow blocks in them, required or optional
119  - Reorganize Unit Tests
120  - Advanced URI filtering schemes (see docs/proposal-new-directives.txt)
121  - Implement lenient <ruby> child validation
122  - Explain how to use HTML Purifier in non-PHP languages / create
123    a simple command line stub (or complicated?)
124  - Fixes for Firefox's inability to handle COL alignment props (Bug 915)
125  - Automatically add non-breaking spaces to empty table cells when
126    empty-cells:show is applied to have compatibility with Internet Explorer
127  - Distinguish between default settings and explicitly set settings, so
128    configurations can be merged
129  - Nested configuration namespaces
130  - Allow scoped="scoped" attribute in <style> tags; may be troublesome
131    because regular CSS has no way of uniquely identifying nodes, so we'd
132    have to generate IDs
133  - Time PHPT tests
135 Requested
137 Wontfix
138  - Non-lossy smart alternate character encoding transformations (unless
139    patch provided)
140  - Pretty-printing HTML: users can use Tidy on the output on entire page
141  - Native content compression, whitespace stripping (don't rely on Tidy, make
142    sure we don't remove from <pre> or related tags): use gzip if this is
143    really important