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