Fix prototype impedance in HTMLDefinition and typo in
[htmlpurifier.git] / TODO
blob1bb707bde4a92a01128df3422dba2e0138f841d3
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 - Built-in support for target="_blank" on all external links
15 - Incorporate data: support as implemented here:
16   http://htmlpurifier.org/phorum/read.php?3,3491,3548
17 - Fix ImgRequired to handle data correctly
18 - Incorporate download and resize support as implemented here:
19   http://htmlpurifier.org/phorum/read.php?3,2795,3628
20 - Think about allowing explicit order of operations hooks for transforms
21 - Add "register" field to config schemas to eliminate dependence on
22   naming conventions
23 - Add examples to everything (make built-in which also automatically
24   gives output)
26 FUTURE VERSIONS
27 ---------------
29 4.1 release [It's All About Trust] (floating)
30  # Implement untrusted, dangerous elements/attributes
31  # Implement IDREF support (harder than it seems, since you cannot have
32    IDREFs to non-existent IDs)
33      - Implement <area> (client and server side image maps are blocking
34        on IDREF support)
35  # Frameset XHTML 1.0 and HTML 4.01 doctypes
36  - Figure out how to simultaneously set %CSS.Trusted and %HTML.Trusted (?)
38 4.2 release [Error'ed]
39  # Error logging for filtering/cleanup procedures
40  - XSS-attempt detection--certain errors are flagged XSS-like
42 4.3 release [Do What I Mean, Not What I Say]
43  # Additional support for poorly written HTML
44     - Microsoft Word HTML cleaning (i.e. MsoNormal, but research essential!)
45     - Friendly strict handling of <address> (block -> <br>)
46  ? Remove redundant tags, ex. <u><u>Underlined</u></u>. Implementation notes:
47     1. Analyzing which tags to remove duplicants
48     2. Ensure attributes are merged into the parent tag
49     3. Extend the tag exclusion system to specify whether or not the
50     contents should be dropped or not (currently, there's code that could do
51     something like this if it didn't drop the inner text too.)
52  - Remove <span> tags that don't do anything (no attributes)
53  - Append something to duplicate IDs so they're still usable (impl. note: the
54    dupe detector would also need to detect the suffix as well)
55  - Externalize inline CSS to promote clean HTML, proposed by Sander Tekelenburg
57 5.0 release [Beyond HTML]
58  # Legit token based CSS parsing (will require revamping almost every
59    AttrDef class). Probably will use CSSTidy class?
60  # More control over allowed CSS properties using a modularization
61  # HTML 5 support
62  # IRI support (this includes IDN)
63  - Standardize token armor for all areas of processing
64  - Convert RTL/LTR override characters to <bdo> tags, or vice versa on demand.
65    Also, enable disabling of directionality
67 6.0 release [To XML and Beyond]
68  - Extended HTML capabilities based on namespacing and tag transforms (COMPLEX)
69     - Hooks for adding custom processors to custom namespaced tags and
70       attributes, offer default implementation
71     - Lots of documentation and samples
73 Ongoing
74  - More refactoring to take advantage of PHP5's facilities
75  - Refactor unit tests into lots of test methods
76  - Plugins for major CMSes (COMPLEX)
77     - phpBB
78     - Drupal needs loving!
79     - Phorum need loving!
80     - more! (look for ones that use WYSIWYGs)
81     - Also, maybe a FAQ for extension writers with HTML Purifier
83 AutoFormat
84  - Smileys
85  - Syntax highlighting (with GeSHi) with <pre> and possibly <?php
86  - Look at http://drupal.org/project/Modules/category/63 for ideas
88 Optimizations
89  - Reduce size of internal data-structures (esp. HTMLDefinition)
90  - Get PH5P working with the latest versions of DOM, which have much more
91    stringent error checking procedures. Maybe convert straight to tokens.
92  - Get rid of set_include_path(). Save this for another major release.
94 Neat feature related
95  ! Factor demo.php into a set of Printer classes, and then create a stub
96    file for users here (inside the actual HTML Purifier library)
97  ! Support exporting configuration, so users can easily tweak settings
98    in the demo, and then copy-paste into their own setup
99  - Advanced URI filtering schemes (see docs/proposal-new-directives.txt)
100  - Allow scoped="scoped" attribute in <style> tags; may be troublesome
101    because regular CSS has no way of uniquely identifying nodes, so we'd
102    have to generate IDs
103  - Explain how to use HTML Purifier in non-PHP languages / create
104    a simple command line stub (or complicated?)
105  - Fixes for Firefox's inability to handle COL alignment props (Bug 915)
106  - Automatically add non-breaking spaces to empty table cells when
107    empty-cells:show is applied to have compatibility with Internet Explorer
108  - Table of Contents generation (XHTML Compiler might be reusable). May also
109    be out-of-band information.
110  - Full set of color keywords. Also, a way to add onto them without
111    finalizing the configuration object.
112  - Write a var_export and memcached DefinitionCache - Denis
114 Maintenance related (slightly boring)
115  # CHMOD install script for PEAR installs
116  ! Factor out command line parser into its own class, and unit test it
117  - Allow merging configurations.  Thus,
118         a -> b -> default
119         c -> d -> default
120    becomes
121         a -> b -> c -> d -> default
122    Maybe allow more fine-grained tuning of this behavior. Alternatively,
123    encourage people to use short plist depths before building them up.
124  - Time PHPT tests
126 ChildDef related (very boring)
127  - Abstract ChildDef_BlockQuote to work with all elements that only
128    allow blocks in them, required or optional
129  - Implement lenient <ruby> child validation
131 Wontfix
132  - Non-lossy smart alternate character encoding transformations (unless
133    patch provided)
134  - Pretty-printing HTML: users can use Tidy on the output on entire page
135  - Native content compression, whitespace stripping: use gzip if this is
136    really important
138     vim: et sw=4 sts=4