[2.1.2] Implement experimental HTML5 parsing using PH5P
[htmlpurifier/bfroehle.git] / TODO
blob6960d4b5282cd1f3a03662e7456b14808bfc72f7
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 required 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 2.2 release [Error'ed]
15  # Error logging for filtering/cleanup procedures
16  - XSS-attempt detection
18 2.3 release [Do What I Mean, Not What I Say]
19  # Additional support for poorly written HTML
20     - Microsoft Word HTML cleaning (i.e. MsoNormal, but research essential!)
21     - Friendly strict handling of <address> (block -> <br>)
22  - Remove redundant tags, ex. <u><u>Underlined</u></u>. Implementation notes:
23     1. Analyzing which tags to remove duplicants
24     2. Ensure attributes are merged into the parent tag
25     3. Extend the tag exclusion system to specify whether or not the
26     contents should be dropped or not (currently, there's code that could do
27     something like this if it didn't drop the inner text too.)
28  - Remove <span> tags that don't do anything (no attributes)
29  - Remove empty inline tags<i></i>
30  - Append something to duplicate IDs so they're still usable (impl. note: the
31    dupe detector would also need to detect the suffix as well)
33 2.4 release [It's All About Trust] (floating)
34  # Implement untrusted, dangerous elements/attributes
35  # Implement IDREF support (harder than it seems, since you cannot have
36    IDREFs to non-existent IDs)
38 3.0 release [Beyond HTML]
39  # Legit token based CSS parsing (will require revamping almost every
40    AttrDef class)
41  # More control over allowed CSS properties (maybe modularize it in the
42    same fashion!)
43  # Formatters for plaintext
44     - Smileys
45  - Standardize token armor for all areas of processing
46  - Fixes for Firefox's inability to handle COL alignment props (Bug 915)
47  - Automatically add non-breaking spaces to empty table cells when
48    empty-cells:show is applied to have compatibility with Internet Explorer
49  - Convert RTL/LTR override characters to <bdo> tags, or vice versa on demand.
50    Also, enable disabling of directionality
52 4.0 release [To XML and Beyond]
53  - Extended HTML capabilities based on namespacing and tag transforms (COMPLEX)
54     - Hooks for adding custom processors to custom namespaced tags and
55       attributes, offer default implementation
56     - Lots of documentation and samples
58 Ongoing
59  - Lots of profiling, make it faster!
60  - Plugins for major CMSes (COMPLEX)
61     - phpBB
62     - eFiction
63     - more! (look for ones that use WYSIWYGs)
64  - Complete basic smoketests
66 Unknown release (on a scratch-an-itch basis)
67  ? Semi-lossy dumb alternate character encoding transfor
68  ? Have 'lang' attribute be checked against official lists, achieved by
69    encoding all characters that have string entity equivalents
70  - Abstract ChildDef_BlockQuote to work with all elements that only
71    allow blocks in them, required or optional
72  - Reorganize Unit Tests
73     - Refactor loop tests: Lexer
74  - Reorganize configuration directives (Create more namespaces! Get messy!)
75  - Advanced URI filtering schemes (see docs/proposal-new-directives.txt)
76  - Implement lenient <ruby> child validation
77  - Explain how to use HTML Purifier in non-PHP languages / create
78    a simple command line stub (or complicated?)
80 Requested
82 Wontfix
83  - Non-lossy smart alternate character encoding transformations (unless
84    patch provided)
85  - Pretty-printing HTML, users can use Tidy on the output on entire page
86  - Native content compression, whitespace stripping (don't rely on Tidy, make
87    sure we don't remove from <pre> or related tags): use gzip if this is
88    really important