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