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