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