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