Add text parameter to unit tests, forces text output.
[htmlpurifier.git] / TODO
blob07a11ccaa6c110367dc1ab27dc0a5207fac55212
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 - Investigate how early internal structures can be accessed; this would
15   prevent structures from being parsed and serialized multiple times.
16 - Built-in support for target="_blank" on all external links
17 - Allow <a id="asdf" name="asdf">
18 - Convert configuration to allow an arbitrary number of namespaces;
19   then rename as appropriate.
21 FUTURE VERSIONS
22 ---------------
24 3.3 release [It's All About Trust] (floating)
25  # Implement untrusted, dangerous elements/attributes
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  - Implement <area>
30  - Figure out how to simultaneously set %CSS.Trusted and %HTML.Trusted (?)
32 3.4 release [Error'ed]
33  # Error logging for filtering/cleanup procedures
34  - XSS-attempt detection--certain errors are flagged XSS-like
36 3.5 release [Do What I Mean, Not What I Say]
37  # Additional support for poorly written HTML
38     - Microsoft Word HTML cleaning (i.e. MsoNormal, but research essential!)
39     - Friendly strict handling of <address> (block -> <br>)
40  ? Remove redundant tags, ex. <u><u>Underlined</u></u>. Implementation notes:
41     1. Analyzing which tags to remove duplicants
42     2. Ensure attributes are merged into the parent tag
43     3. Extend the tag exclusion system to specify whether or not the
44     contents should be dropped or not (currently, there's code that could do
45     something like this if it didn't drop the inner text too.)
46  - Remove <span> tags that don't do anything (no attributes)
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 (this includes IDN)
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  - Extended HTML capabilities based on namespacing and tag transforms (COMPLEX)
63     - Hooks for adding custom processors to custom namespaced tags and
64       attributes, offer default implementation
65     - Lots of documentation and samples
67 Ongoing
68  - More refactoring to take advantage of PHP5's facilities
69  - Refactor unit tests into lots of test methods
70  - Plugins for major CMSes (COMPLEX)
71     - phpBB
72     - Drupal needs loving!
73     - Phorum need loving!
74     - more! (look for ones that use WYSIWYGs)
75     - Also, maybe a FAQ for extension writers with HTML Purifier
77 AutoFormat
78  - Smileys
79  - Syntax highlighting (with GeSHi) with <pre> and possibly <?php
80  - Look at http://drupal.org/project/Modules/category/63 for ideas
82 Optimizations
83  - Reduce size of internal data-structures (esp. HTMLDefinition)
84  - Research memory usage of objects versus arrays
85  - Combine multiple strategies into a single, single-pass strategy
86  - Get PH5P working with the latest versions of DOM, which have much more
87    stringent error checking procedures. Maybe convert straight to tokens.
88  - Get rid of set_include_path(). Save this for another major release.
90 Neat feature related
91  ! Factor demo.php into a set of Printer classes, and then create a stub
92    file for users here (inside the actual HTML Purifier library)
93  ! Support exporting configuration, so users can easily tweak settings
94    in the demo, and then copy-paste into their own setup
95  - Advanced URI filtering schemes (see docs/proposal-new-directives.txt)
96  - Allow scoped="scoped" attribute in <style> tags; may be troublesome
97    because regular CSS has no way of uniquely identifying nodes, so we'd
98    have to generate IDs
99  - Explain how to use HTML Purifier in non-PHP languages / create
100    a simple command line stub (or complicated?)
101  - Fixes for Firefox's inability to handle COL alignment props (Bug 915)
102  - Automatically add non-breaking spaces to empty table cells when
103    empty-cells:show is applied to have compatibility with Internet Explorer
104  - Table of Contents generation (XHTML Compiler might be reusable). May also
105    be out-of-band information.
106  - Full set of color keywords. Also, a way to add onto them without
107    finalizing the configuration object.
108  - Write a var_export and memcached DefinitionCache - Denis
109  - Allow restriction of allowed class values
111 Maintenance related (slightly boring)
112  # CHMOD install script for PEAR installs
113  ! Factor out command line parser into its own class, and unit test it
114  ! Nested configuration namespaces
115  - Distinguish between default settings and explicitly set settings, so
116    configurations can be merged
117  - Time PHPT tests
119 ChildDef related (very boring)
120  - Abstract ChildDef_BlockQuote to work with all elements that only
121    allow blocks in them, required or optional
122  - Implement lenient <ruby> child validation
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: use gzip if this is
129    really important
131     vim: et sw=4 sts=4