[1.3.2] Added purifyArray(), which takes a list of HTML and purifies it all
[htmlpurifier.git] / NEWS
blob4ef5ab256021cac43e4596d96cdab282dea17dc1
1 NEWS ( CHANGELOG and HISTORY )                                     HTMLPurifier
2 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
4 = KEY ====================
5     # Breaks back-compat
6     ! Feature
7     - Bugfix
8       + Sub-comment
9     . Internal change
10 ==========================
12 1.4.0, unknown release date (around Christmas, hopefully)
13 (major feature release)
15 1.3.2, unknown release date, may be dropped
16 (security/bugfix/minor feature release)
17 ! HTMLPurifier object now accepts configuration arrays, no need to manually
18   instantiate a configuration object
19 ! Context object now accessible to outside
20 ! Added enduser-youtube.html, explains how to embed YouTube videos. See
21   also corresponding smoketest preserveYouTube.php.
22 ! Added purifyArray(), which takes a list of HTML and purifies it all
23 - printDefinition.php: added labels, added better clarification
24 . HTMLPurifier_Config::create() added, takes mixed variable and converts into
25   a HTMLPurifier_Config object.
27 1.3.1, released 2006-12-06
28 ! Added HTMLPurifier.func.php stub for a convenient function to call the library
29 - Fixed bug in RemoveInvalidImg code that caused all images to be dropped
30   (thanks to .mario for reporting this)
31 . Standardized all attribute handling variables to attr, made it plural
33 1.3.0, released 2006-11-26
34 # Invalid images are now removed, rather than replaced with a dud
35   <img src="" alt="Invalid image" />. Previous behavior can be restored
36   with new directive %Core.RemoveInvalidImg set to false.
37 ! (X)HTML Strict now supported
38   + Transparently handles inline elements in block context (blockquote)
39 ! Added GET method to demo for easier validation, added 50kb max input size
40 ! New directive %HTML.BlockWrapper, for block-ifying inline elements
41 ! New directive %HTML.Parent, allows you to only allow inline content
42 ! New directives %HTML.AllowedElements and %HTML.AllowedAttributes to let
43   users narrow the set of allowed tags
44 ! <li value="4"> and <ul start="2"> now allowed in loose mode
45 ! New directives %URI.DisableExternalResources and %URI.DisableResources
46 ! New directive %Attr.DisableURI, which eliminates all hyperlinking
47 ! New directive %URI.Munge, munges URI so you can use some sort of redirector
48   service to avoid PageRank leaks or warn users that they are exiting your site.
49 ! Added spiffy new smoketest printDefinition.php, which lets you twiddle with
50   the configuration settings and see how the internal rules are affected.
51 ! New directive %URI.HostBlacklist for blocking links to bad hosts.
52   xssAttacks.php smoketest updated accordingly.
53 - Added missing type to ChildDef_Chameleon
54 - Remove Tidy option from demo if there is not Tidy available
55 . ChildDef_Required guards against empty tags
56 . Lookup table HTMLDefinition->info_flow_elements added
57 . Added peace-of-mind variable initialization to Strategy_FixNesting
58 . Added HTMLPurifier->info_parent_def, parent child processing made special
59 . Added internal documents briefly summarizing future progression of HTML
60 . HTMLPurifier_Config->getBatch($namespace) added
61 . More lenient casting to bool from string in HTMLPurifier_ConfigSchema
62 . Refactored ChildDef classes into their own files
64 1.2.0, released 2006-11-19
65 # ID attributes now disabled by default. New directives:
66   + %HTML.EnableAttrID - restores old behavior by allowing IDs
67   + %Attr.IDPrefix - %Attr.IDBlacklist alternative that munges all user IDs
68     so that they don't collide with your IDs
69   + %Attr.IDPrefixLocal - Same as above, but for when there are multiple
70     instances of user content on the page
71   + Profuse documentation on how to use these available in docs/enduser-id.txt
72 ! Added MODx plugin <http://modxcms.com/forums/index.php/topic,6604.0.html>
73 ! Added percent encoding normalization
74 ! XSS attacks smoketest given facelift
75 ! Configuration documentation now has table of contents
76 ! Added %URI.DisableExternal, which prevents links to external websites.  You
77   can also use %URI.Host to permit absolute linking to subdomains
78 ! Non-accessible resources (ex. mailto) blocked from embedded URIs (img src)
79 - Type variable in HTMLDefinition was not being set properly, fixed
80 - Documentation updated
81   + TODO added request Phalanger
82   + TODO added request Native compression
83   + TODO added request Remove redundant tags
84   + TODO added possible plaintext formatter for HTML Purifier documentation
85   + Updated ConfigDoc TODO
86   + Improved inline comments in AttrDef/Class.php, AttrDef/CSS.php
87     and AttrDef/Host.php
88   + Revamped documentation into HTML, along with misc updates
89 - HTMLPurifier_Context doesn't throw a variable reference error if you attempt
90   to retrieve a non-existent variable
91 . Switched to purify()-wide Context object registry
92 . Refactored unit tests to minimize duplication
93 . XSS attack sheet updated
94 . configdoc.xml now has xml:space attached to default value nodes
95 . Allow configuration directives to permit null values
96 . Cleaned up test-cases to remove unnecessary swallowErrors()
98 1.1.2, released 2006-09-30
99 ! Add HTMLPurifier.auto.php stub file that configures include_path
100 - Documentation updated
101   + INSTALL document rewritten
102   + TODO added semi-lossy conversion
103   + API Doxygen docs' file exclusions updated
104   + Added notes on HTML versus XML attribute whitespace handling
105   + Noted that HTMLPurifier_ChildDef_Custom isn't being used
106   + Noted that config object's definitions are cached versions
107 - Fixed lack of attribute parsing in HTMLPurifier_Lexer_PEARSax3
108 - ftp:// URIs now have their typecodes checked
109 - Hooked up HTMLPurifier_ChildDef_Custom's unit tests (they weren't being run)
110 . Line endings standardized throughout project (svn:eol-style standardized)
111 . Refactored parseData() to general Lexer class
112 . Tester named "HTML Purifier" not "HTMLPurifier"
114 1.1.1, released 2006-09-24
115 ! Configuration option to optionally Tidy up output for indentation to make up
116   for dropped whitespace by DOMLex (pretty-printing for the entire application
117   should be done by a page-wide Tidy)
118 - Various documentation updates
119 - Fixed parse error in configuration documentation script
120 - Fixed fatal error in benchmark scripts, slightly augmented
121 - As far as possible, whitespace is preserved in-between table children
122 - Sample test-settings.php file included
124 1.1.0, released 2006-09-16
125 ! Directive documentation generation using XSLT
126 ! XHTML can now be turned off, output becomes <br>
127 - Made URI validator more forgiving: will ignore leading and trailing
128   quotes, apostrophes and less than or greater than signs.
129 - Enforce alphanumeric namespace and directive names for configuration.
130 - Table child definition made more flexible, will fix up poorly ordered elements
131 . Renamed ConfigDef to ConfigSchema
133 1.0.1, released 2006-09-04
134 - Fixed slight bug in DOMLex attribute parsing
135 - Fixed rejection of case-insensitive configuration values when there is a
136   set of allowed values.  This manifested in %Core.Encoding.
137 - Fixed rejection of inline style declarations that had lots of extra
138   space in them.  This manifested in TinyMCE.
140 1.0.0, released 2006-09-01
141 ! Shorthand CSS properties implemented: font, border, background, list-style
142 ! Basic color keywords translated into hexadecimal values
143 ! Table CSS properties implemented
144 ! Support for charsets other than UTF-8 (defined by iconv)
145 ! Malformed UTF-8 and non-SGML character detection and cleaning implemented
146 - Fixed broken numeric entity conversion
147 - API documentation completed
148 . (HTML|CSS)Definition de-singleton-ized
150 1.0.0beta, released 2006-08-16
151 ! First public release, most functionality implemented. Notable omissions are:
152   + Shorthand CSS properties
153   + Table CSS properties
154   + Deprecated attribute transformations