Release 1.6.0.
[htmlpurifier.git] / NEWS
blob089922f0c768b15681a28b7e6e6319cd1e975a81
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.6.0, released 2007-04-01
13 ! Support for most common deprecated attributes via transformations:
14   + bgcolor in td, th, tr and table
15   + border in img
16   + name in a and img
17   + width in td, th and hr
18   + height in td, th
19 ! Support for CSS attribute 'height' added
20 ! Support for rel and rev attributes in a tags added, use %Attr.AllowedRel
21   and %Attr.AllowedRev to activate
22 - You can define ID blacklists using regular expressions via
23   %Attr.IDBlacklistRegexp
24 - Error messages are emitted when you attempt to "allow" elements or
25   attributes that HTML Purifier does not support
27 1.5.1, unknown release date
28 - Fix segfault in unit test. The problem is not very reproduceable and
29   I don't know what causes it, but a six line patch fixed it.
31 1.5.0, released 2007-03-23
32 ! Added a rudimentary I18N and L10N system modeled off MediaWiki. It
33   doesn't actually do anything yet, but keep your eyes peeled.
34 ! docs/enduser-utf8.html explains how to use UTF-8 and HTML Purifier
35 ! Newly structured HTMLDefinition modeled off of XHTML 1.1 modules.
36   I am loathe to release beta quality APIs, but this is exactly that;
37   don't use the internal interfaces if you're not willing to do migration
38   later on.
39 - Allow 'x' subtag in language codes
40 - Fixed buggy chameleon-support for ins and del
41 . Added support for IDREF attributes (i.e. for)
42 . Renamed HTMLPurifier_AttrDef_Class to HTMLPurifier_AttrDef_Nmtokens
43 . Removed context variable ParentType, replaced with IsInline, which
44   is false when you're not inline and an integer of the parent that
45   caused you to become inline when you are (so possibly zero)
46 . Removed ElementDef->type in favor of ElementDef->descendants_are_inline
47   and HTMLDefinition->content_sets
48 . StrictBlockquote now reports what elements its supposed to allow,
49   rather than what it does allow
50 . Removed HTMLDefinition->info_flow_elements in favor of
51   HTMLDefinition->content_sets['Flow']
52 . Removed redundant "exclusionary" definitions from DTD roster
53 . StrictBlockquote now requires a construction parameter as if it
54   were an Required ChildDef, this is the "real" set of allowed elements
55 . AttrDef partitioned into HTML, CSS and URI segments
56 . Modify Youtube filter regexp to be multiline
57 . Require both PHP5 and DOM extension in order to use DOMLex, fixes
58   some edge cases where a DOMDocument class exists in a PHP4 environment
59   due to DOM XML extension.
61 1.4.1, released 2007-01-21
62 ! docs/enduser-youtube.html updated according to new functionality
63 - YouTube IDs can have underscores and dashes
65 1.4.0, released 2007-01-21
66 ! Implemented list-style-image, URIs now allowed in list-style
67 ! Implemented background-image, background-repeat, background-attachment
68   and background-position CSS properties. Shorthand property background
69   supports all of these properties.
70 ! Configuration documentation looks nicer
71 ! Added %Core.EscapeNonASCIICharacters to workaround loss of Unicode
72   characters while %Core.Encoding is set to a non-UTF-8 encoding.
73 ! Support for configuration directive aliases added
74 ! Config object can now be instantiated from ini files
75 ! YouTube preservation code added to the core, with two lines of code
76   you can add it as a filter to your code. See smoketests/preserveYouTube.php
77   for sample code.
78 ! Moved SLOW to docs/enduser-slow.html and added code examples
79 - Replaced version check with functionality check for DOM (thanks Stephen
80   Khoo)
81 . Added smoketest 'all.php', which loads all other smoketests via frames
82 . Implemented AttrDef_CSSURI for url(http://google.com) style declarations
83 . Added convenient single test selector form on test runner
85 1.3.2, released 2006-12-25
86 ! HTMLPurifier object now accepts configuration arrays, no need to manually
87   instantiate a configuration object
88 ! Context object now accessible to outside
89 ! Added enduser-youtube.html, explains how to embed YouTube videos. See
90   also corresponding smoketest preserveYouTube.php.
91 ! Added purifyArray(), which takes a list of HTML and purifies it all
92 ! Added static member variable $version to HTML Purifier with PHP-compatible
93   version number string.
94 - Fixed fatal error thrown by upper-cased language attributes
95 - printDefinition.php: added labels, added better clarification
96 . HTMLPurifier_Config::create() added, takes mixed variable and converts into
97   a HTMLPurifier_Config object.
99 1.3.1, released 2006-12-06
100 ! Added HTMLPurifier.func.php stub for a convenient function to call the library
101 - Fixed bug in RemoveInvalidImg code that caused all images to be dropped
102   (thanks to .mario for reporting this)
103 . Standardized all attribute handling variables to attr, made it plural
105 1.3.0, released 2006-11-26
106 # Invalid images are now removed, rather than replaced with a dud
107   <img src="" alt="Invalid image" />. Previous behavior can be restored
108   with new directive %Core.RemoveInvalidImg set to false.
109 ! (X)HTML Strict now supported
110   + Transparently handles inline elements in block context (blockquote)
111 ! Added GET method to demo for easier validation, added 50kb max input size
112 ! New directive %HTML.BlockWrapper, for block-ifying inline elements
113 ! New directive %HTML.Parent, allows you to only allow inline content
114 ! New directives %HTML.AllowedElements and %HTML.AllowedAttributes to let
115   users narrow the set of allowed tags
116 ! <li value="4"> and <ul start="2"> now allowed in loose mode
117 ! New directives %URI.DisableExternalResources and %URI.DisableResources
118 ! New directive %Attr.DisableURI, which eliminates all hyperlinking
119 ! New directive %URI.Munge, munges URI so you can use some sort of redirector
120   service to avoid PageRank leaks or warn users that they are exiting your site.
121 ! Added spiffy new smoketest printDefinition.php, which lets you twiddle with
122   the configuration settings and see how the internal rules are affected.
123 ! New directive %URI.HostBlacklist for blocking links to bad hosts.
124   xssAttacks.php smoketest updated accordingly.
125 - Added missing type to ChildDef_Chameleon
126 - Remove Tidy option from demo if there is not Tidy available
127 . ChildDef_Required guards against empty tags
128 . Lookup table HTMLDefinition->info_flow_elements added
129 . Added peace-of-mind variable initialization to Strategy_FixNesting
130 . Added HTMLPurifier->info_parent_def, parent child processing made special
131 . Added internal documents briefly summarizing future progression of HTML
132 . HTMLPurifier_Config->getBatch($namespace) added
133 . More lenient casting to bool from string in HTMLPurifier_ConfigSchema
134 . Refactored ChildDef classes into their own files
136 1.2.0, released 2006-11-19
137 # ID attributes now disabled by default. New directives:
138   + %HTML.EnableAttrID - restores old behavior by allowing IDs
139   + %Attr.IDPrefix - %Attr.IDBlacklist alternative that munges all user IDs
140     so that they don't collide with your IDs
141   + %Attr.IDPrefixLocal - Same as above, but for when there are multiple
142     instances of user content on the page
143   + Profuse documentation on how to use these available in docs/enduser-id.txt
144 ! Added MODx plugin <http://modxcms.com/forums/index.php/topic,6604.0.html>
145 ! Added percent encoding normalization
146 ! XSS attacks smoketest given facelift
147 ! Configuration documentation now has table of contents
148 ! Added %URI.DisableExternal, which prevents links to external websites.  You
149   can also use %URI.Host to permit absolute linking to subdomains
150 ! Non-accessible resources (ex. mailto) blocked from embedded URIs (img src)
151 - Type variable in HTMLDefinition was not being set properly, fixed
152 - Documentation updated
153   + TODO added request Phalanger
154   + TODO added request Native compression
155   + TODO added request Remove redundant tags
156   + TODO added possible plaintext formatter for HTML Purifier documentation
157   + Updated ConfigDoc TODO
158   + Improved inline comments in AttrDef/Class.php, AttrDef/CSS.php
159     and AttrDef/Host.php
160   + Revamped documentation into HTML, along with misc updates
161 - HTMLPurifier_Context doesn't throw a variable reference error if you attempt
162   to retrieve a non-existent variable
163 . Switched to purify()-wide Context object registry
164 . Refactored unit tests to minimize duplication
165 . XSS attack sheet updated
166 . configdoc.xml now has xml:space attached to default value nodes
167 . Allow configuration directives to permit null values
168 . Cleaned up test-cases to remove unnecessary swallowErrors()
170 1.1.2, released 2006-09-30
171 ! Add HTMLPurifier.auto.php stub file that configures include_path
172 - Documentation updated
173   + INSTALL document rewritten
174   + TODO added semi-lossy conversion
175   + API Doxygen docs' file exclusions updated
176   + Added notes on HTML versus XML attribute whitespace handling
177   + Noted that HTMLPurifier_ChildDef_Custom isn't being used
178   + Noted that config object's definitions are cached versions
179 - Fixed lack of attribute parsing in HTMLPurifier_Lexer_PEARSax3
180 - ftp:// URIs now have their typecodes checked
181 - Hooked up HTMLPurifier_ChildDef_Custom's unit tests (they weren't being run)
182 . Line endings standardized throughout project (svn:eol-style standardized)
183 . Refactored parseData() to general Lexer class
184 . Tester named "HTML Purifier" not "HTMLPurifier"
186 1.1.1, released 2006-09-24
187 ! Configuration option to optionally Tidy up output for indentation to make up
188   for dropped whitespace by DOMLex (pretty-printing for the entire application
189   should be done by a page-wide Tidy)
190 - Various documentation updates
191 - Fixed parse error in configuration documentation script
192 - Fixed fatal error in benchmark scripts, slightly augmented
193 - As far as possible, whitespace is preserved in-between table children
194 - Sample test-settings.php file included
196 1.1.0, released 2006-09-16
197 ! Directive documentation generation using XSLT
198 ! XHTML can now be turned off, output becomes <br>
199 - Made URI validator more forgiving: will ignore leading and trailing
200   quotes, apostrophes and less than or greater than signs.
201 - Enforce alphanumeric namespace and directive names for configuration.
202 - Table child definition made more flexible, will fix up poorly ordered elements
203 . Renamed ConfigDef to ConfigSchema
205 1.0.1, released 2006-09-04
206 - Fixed slight bug in DOMLex attribute parsing
207 - Fixed rejection of case-insensitive configuration values when there is a
208   set of allowed values.  This manifested in %Core.Encoding.
209 - Fixed rejection of inline style declarations that had lots of extra
210   space in them.  This manifested in TinyMCE.
212 1.0.0, released 2006-09-01
213 ! Shorthand CSS properties implemented: font, border, background, list-style
214 ! Basic color keywords translated into hexadecimal values
215 ! Table CSS properties implemented
216 ! Support for charsets other than UTF-8 (defined by iconv)
217 ! Malformed UTF-8 and non-SGML character detection and cleaning implemented
218 - Fixed broken numeric entity conversion
219 - API documentation completed
220 . (HTML|CSS)Definition de-singleton-ized
222 1.0.0beta, released 2006-08-16
223 ! First public release, most functionality implemented. Notable omissions are:
224   + Shorthand CSS properties
225   + Table CSS properties
226   + Deprecated attribute transformations