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