[3.1.1] Fix text-decoration: none bug
[htmlpurifier.git] / TODO
blob40b1125f4f087774675d37bef9c95df00a64c8be
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 - Figure out how to simultaneously set %CSS.Trusted and %HTML.Trusted (?)
17 - Merge bugfixes to PHP4
18 - Upgrade Modx module for HTML Purifier 3.1 (HTMLPurifier.php -> HTMLPurifier.auto.php)
19 - Built-in support for target="_blank" on all external links
20 - Make Phorum hide emails
21 - Implement SecureMunge for resources too
22 - Gitify the repository
24 FUTURE VERSIONS
25 ---------------
27 3.2 release [It's All About Trust] (floating)
28  # Implement untrusted, dangerous elements/attributes
29     - Forms are especially wanted
30  # Implement IDREF support (harder than it seems, since you cannot have
31    IDREFs to non-existent IDs)
32  # Frameset XHTML 1.0 and HTML 4.01 doctypes
33  - Implement <area>
35 3.3 release [Error'ed]
36  # Error logging for filtering/cleanup procedures
37  - XSS-attempt detection--certain errors are flagged XSS-like
39 3.4 release [Do What I Mean, Not What I Say]
40  # Additional support for poorly written HTML
41     - Microsoft Word HTML cleaning (i.e. MsoNormal, but research essential!)
42     - Friendly strict handling of <address> (block -> <br>)
43  ? Remove redundant tags, ex. <u><u>Underlined</u></u>. Implementation notes:
44     1. Analyzing which tags to remove duplicants
45     2. Ensure attributes are merged into the parent tag
46     3. Extend the tag exclusion system to specify whether or not the
47     contents should be dropped or not (currently, there's code that could do
48     something like this if it didn't drop the inner text too.)
49  - Remove <span> tags that don't do anything (no attributes)
50  - Remove empty inline tags<i></i>
51  - Append something to duplicate IDs so they're still usable (impl. note: the
52    dupe detector would also need to detect the suffix as well)
53  - Externalize inline CSS to promote clean HTML, proposed by Sander Tekelenburg
55 4.0 release [Beyond HTML]
56  # Legit token based CSS parsing (will require revamping almost every
57    AttrDef class). Probably will use CSSTidy class?
58  # More control over allowed CSS properties using a modularization
59  # HTML 5 support
60  # IRI support
61  - Standardize token armor for all areas of processing
62  - Convert RTL/LTR override characters to <bdo> tags, or vice versa on demand.
63    Also, enable disabling of directionality
65 5.0 release [To XML and Beyond]
66  - AllowedAttributes and ForbiddenAttributes step on the toes of XML by
67    using periods; this needs to be changed.
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  - Research memory usage of objects versus arrays
91  - Combine multiple strategies into a single, single-pass strategy
92  - Get PH5P working with the latest versions of DOM, which have much more
93    stringent error checking procedures. Maybe convert straight to tokens.
94  - Get rid of set_include_path(). Save this for another major release.
96 Neat feature related
97  ! Factor demo.php into a set of Printer classes, and then create a stub
98    file for users here (inside the actual HTML Purifier library)
99  ! Support exporting configuration, so users can easily tweak settings
100    in the demo, and then copy-paste into their own setup
101  - Advanced URI filtering schemes (see docs/proposal-new-directives.txt)
102  - Allow scoped="scoped" attribute in <style> tags; may be troublesome
103    because regular CSS has no way of uniquely identifying nodes, so we'd
104    have to generate IDs
105  - Explain how to use HTML Purifier in non-PHP languages / create
106    a simple command line stub (or complicated?)
107  - Fixes for Firefox's inability to handle COL alignment props (Bug 915)
108  - Automatically add non-breaking spaces to empty table cells when
109    empty-cells:show is applied to have compatibility with Internet Explorer
110  - Table of Contents generation (XHTML Compiler might be reusable). May also
111    be out-of-band information.
112  - Full set of color keywords. Also, a way to add onto them without
113    finalizing the configuration object.
114  - Write a var_export and memcached DefinitionCache - Denis
116 Maintenance related (slightly boring)
117  # CHMOD install script for PEAR installs
118  ! Factor out command line parser into its own class, and unit test it
119  ! Nested configuration namespaces
120  - Distinguish between default settings and explicitly set settings, so
121    configurations can be merged
122  - Time PHPT tests
124 ChildDef related (very boring)
125  - Abstract ChildDef_BlockQuote to work with all elements that only
126    allow blocks in them, required or optional
127  - Implement lenient <ruby> child validation
129 Wontfix
130  - Non-lossy smart alternate character encoding transformations (unless
131    patch provided)
132  - Pretty-printing HTML: users can use Tidy on the output on entire page
133  - Native content compression, whitespace stripping: use gzip if this is
134    really important