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