Add AutoFormat.RemoveEmpty.Predicate, fixes #35.
[htmlpurifier.git] / NEWS
blobb4abb8574a8c9515676a78107a8ed7ce72f78829
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 4.7.0, unknown release date
13 # opacity is now considered a "tricky" CSS property rather than a
14   proprietary one.
15 ! %AutoFormat.RemoveEmpty.Predicate for specifying exactly when
16   an element should be considered "empty" (maybe preserve if it
17   has attributes), and modify iframe support so that the iframe
18   is removed if it is missing a src attribute.  Thanks meeva for
19   reporting.
20 - Don't truncate upon encountering </div> when using DOMLex.  Thanks
21   Myrto Christina for finally convincing me to fix this.
22 - Update YouTube filter for new code.
24 4.6.0, released 2013-11-30
25 # Secure URI munge hashing algorithm has changed to hash_hmac("sha256", $url, $secret).
26   Please update any verification scripts you may have.
27 # URI parsing algorithm was made more strict, so only prefixes which
28   looks like schemes will actually be schemes.  Thanks
29   Michael Gusev <mgusev@sugarcrm.com> for fixing.
30 # %Core.EscapeInvalidChildren is no longer supported, and no longer does
31   anything.
32 ! New directive %Core.AllowHostnameUnderscore which allows underscores
33   in hostnames.
34 - Eliminate quadratic behavior in DOMLex by using a proper queue.
35   Thanks Ole Laursen for noticing this.
36 - Rewritten MakeWellFormed/FixNesting implementation eliminates quadratic
37   behavior in the rest of the purificaiton pipeline.  Thanks Chedburn
38   Networks for sponsoring this work.
39 - Made Linkify URL parser a bit less permissive, so that non-breaking
40   spaces and commas are not included as part of URL.  Thanks nAS for fixing.
41 - Fix some bad interactions with %HTML.Allowed and injectors.  Thanks
42   David Hirtz for reporting.
43 - Fix infinite loop in DirectLex. Thanks Ashar Javed (@soaj1664ashar)
44   for reporting.
46 4.5.0, released 2013-02-17
47 # Fix bug where stacked attribute transforms clobber each other;
48   this also means it's no longer possible to override attribute
49   transforms in later modules.  No internal code was using this
50   but this may break some clients.
51 # We now use SHA-1 to identify cached definitions, instead of MD5.
52 ! Support display:inline-block
53 ! Support for more white-space CSS values.
54 ! Permit underscores in font families
55 ! Support for page-break-* CSS3 properties when proprietary properties
56   are enabled.
57 ! New directive %Core.DisableExcludes; can be set to 'true' to turn off
58   SGML excludes checking.  If HTML Purifier is removing too much text
59   and you don't care about full standards compliance, try setting this to
60   'true'.
61 - Use prepend for SPL autoloading on PHP 5.3 and later.
62 - Fix bug with nofollow transform when pre-existing rel exists.
63 - Fix bug where background:url() always gets lower-cased
64   (but not background-image:url())
65 - Fix bug with non lower-case color names in HTML
66 - Fix bug where data URI validation doesn't remove temporary files.
67   Thanks Javier Marín Ros <javiermarinros@gmail.com> for reporting.
68 - Don't remove certain empty tags on RemoveEmpty.
70 4.4.0, released 2012-01-18
71 # Removed PEARSax3 handler.
72 # URI.Munge now munges URIs inside the same host that go from https
73   to http.  Reported by Neike Taika-Tessaro.
74 # Core.EscapeNonASCIICharacters now always transforms entities to
75   entities, even if target encoding is UTF-8.
76 # Tighten up selector validation in ExtractStyleBlocks.
77   Non-syntactically valid selectors are now rejected, along with
78   some of the more obscure ones such as attribute selectors, the
79   :lang pseudoselector, and anything not in CSS2.1.  Furthermore,
80   ID and class selectors now work properly with the relevant
81   configuration attributes.  Also, mute errors when parsing CSS
82   with CSS Tidy.  Reported by Mario Heiderich and Norman Hippert.
83 ! Added support for 'scope' attribute on tables.
84 ! Added %HTML.TargetBlank, which adds target="blank" to all outgoing links.
85 ! Properly handle sub-lists directly nested inside of lists in
86   a standards compliant way, by moving them into the preceding <li>
87 ! Added %HTML.AllowedComments and %HTML.AllowedCommentsRegexp for
88   limited allowed comments in untrusted situations.
89 ! Implement iframes, and allow them to be used in untrusted mode with
90   %HTML.SafeIframe and %URI.SafeIframeRegexp.  Thanks Bradley M. Froehle
91   <brad.froehle@gmail.com> for submitting an initial version of the patch.
92 ! The Forms module now works properly for transitional doctypes.
93 ! Added support for internationalized domain names. You need the PEAR
94   Net_IDNA2 module to be in your path; if it is installed, ensure the
95   class can be loaded and then set %Core.EnableIDNA to true.
96 - Color keywords are now case insensitive.  Thanks Yzmir Ramirez
97   <yramirez-htmlpurifier@adicio.com> for reporting.
98 - Explicitly initialize anonModule variable to null.
99 - Do not duplicate nofollow if already present.  Thanks 178
100   for reporting.
101 - Do not add nofollow if hostname matches our current host.  Thanks 178
102   for reporting, and Neike Taika-Tessaro for helping diagnose.
103 - Do not unset parser variable; this fixes intermittent serialization
104   problems.  Thanks Neike Taika-Tessaro for reporting, bill
105   <10010tiger@gmail.com> for diagnosing.
106 - Fix iconv truncation bug, where non-UTF-8 target encodings see
107   output truncated after around 8000 characters.  Thanks Jörg Ludwig
108   <joerg.ludwig@iserv.eu> for reporting.
109 - Fix broken table content model for XHTML1.1 (and also earlier
110   versions, although the W3C validator doesn't catch those violations).
111   Thanks GlitchMr <glitch.mr@gmail.com> for reporting.
113 4.3.0, released 2011-03-27
114 # Fixed broken caching of customized raw definitions, but requires an
115   API change.  The old API still works but will emit a warning,
116   see http://htmlpurifier.org/docs/enduser-customize.html#optimized
117   for how to upgrade your code.
118 # Protect against Internet Explorer innerHTML behavior by specially
119   treating attributes with backticks but no angled brackets, quotes or
120   spaces.  This constitutes a slight semantic change, which can be
121   reverted using %Output.FixInnerHTML.  Reported by Neike Taika-Tessaro
122   and Mario Heiderich.
123 # Protect against cssText/innerHTML by restricting allowed characters
124   used in fonts further than mandated by the specification and encoding
125   some extra special characters in URLs.  Reported by Neike
126   Taika-Tessaro and Mario Heiderich.
127 ! Added %HTML.Nofollow to add rel="nofollow" to external links.
128 ! More types of SPL autoloaders allowed on later versions of PHP.
129 ! Implementations for position, top, left, right, bottom, z-index
130   when %CSS.Trusted is on.
131 ! Add %Cache.SerializerPermissions option for custom serializer
132   directory/file permissions
133 ! Fix longstanding bug in Flash support for non-IE browsers, and
134   allow more wmode attributes.
135 ! Add %CSS.AllowedFonts to restrict permissible font names.
136 - Switch to an iterative traversal of the DOM, which prevents us
137   from running out of stack space for deeply nested documents.
138   Thanks Maxim Krizhanovsky for contributing a patch.
139 - Make removal of conditional IE comments ungreedy; thanks Bernd
140   for reporting.
141 - Escape CDATA before removing Internet Explorer comments.
142 - Fix removal of id attributes under certain conditions by ensuring
143   armor attributes are preserved when recreating tags.
144 - Check if schema.ser was corrupted.
145 - Check if zend.ze1_compatibility_mode is on, and error out if it is.
146   This safety check is only done for HTMLPurifier.auto.php; if you
147   are using standalone or the specialized includes files, you're
148   expected to know what you're doing.
149 - Stop repeatedly writing the cache file after I'm done customizing a
150   raw definition.  Reported by ajh.
151 - Switch to using require_once in the Bootstrap to work around bad
152   interaction with Zend Debugger and APC.  Reported by Antonio Parraga.
153 - Fix URI handling when hostname is missing but scheme is present.
154   Reported by Neike Taika-Tessaro.
155 - Fix missing numeric entities on DirectLex; thanks Neike Taika-Tessaro
156   for reporting.
157 - Fix harmless notice from indexing into empty string.  Thanks Matthijs
158   Kooijman <matthijs@stdin.nl> for reporting.
159 - Don't autoclose no parent elements are able to support the element
160   that triggered the autoclose.  In particular fixes strange behavior
161   of stray <li> tags.  Thanks pkuliga@gmail.com for reporting and
162   Neike Taika-Tessaro <pinkgothic@gmail.com> for debugging assistance.
164 4.2.0, released 2010-09-15
165 ! Added %Core.RemoveProcessingInstructions, which lets you remove
166   <? ... ?> statements.
167 ! Added %URI.DisableResources functionality; the directive originally
168   did nothing.  Thanks David Rothstein for reporting.
169 ! Add documentation about configuration directive types.
170 ! Add %CSS.ForbiddenProperties configuration directive.
171 ! Add %HTML.FlashAllowFullScreen to permit embedded Flash objects
172   to utilize full-screen mode.
173 ! Add optional support for the <code>file</code> URI scheme, enable
174   by explicitly setting %URI.AllowedSchemes.
175 ! Add %Core.NormalizeNewlines options to allow turning off newline
176   normalization.
177 - Fix improper handling of Internet Explorer conditional comments
178   by parser.  Thanks zmonteca for reporting.
179 - Fix missing attributes bug when running on Mac Snow Leopard and APC.
180   Thanks sidepodcast for the fix.
181 - Warn if an element is allowed, but an attribute it requires is
182   not allowed.
184 4.1.1, released 2010-05-31
185 - Fix undefined index warnings in maintenance scripts.
186 - Fix bug in DirectLex for parsing elements with a single attribute
187   with entities.
188 - Rewrite CSS output logic for font-family and url().  Thanks Mario
189   Heiderich <mario.heiderich@googlemail.com> for reporting and Takeshi
190   Terada <t-terada@violet.plala.or.jp> for suggesting the fix.
191 - Emit an error for CollectErrors if a body is extracted
192 - Fix bug where in background-position for center keyword handling.
193 - Fix infinite loop when a wrapper element is inserted in a context
194   where it's not allowed.  Thanks Lars <lars@renoz.dk> for reporting.
195 - Remove +x bit and shebang from index.php; only supported mode is to
196   explicitly call it with php.
197 - Make test script less chatty when log_errors is on.
199 4.1.0, released 2010-04-26
200 ! Support proprietary height attribute on table element
201 ! Support YouTube slideshows that contain /cp/ in their URL.
202 ! Support for data: URI scheme; not enabled by default, add it using
203   %URI.AllowedSchemes
204 ! Support flashvars when using %HTML.SafeObject and %HTML.SafeEmbed.
205 ! Support for Internet Explorer compatibility with %HTML.SafeObject
206   using %Output.FlashCompat.
207 ! Handle <ol><ol> properly, by inserting the necessary <li> tag.
208 - Always quote the insides of url(...) in CSS.
210 4.0.0, released 2009-07-07
211 # APIs for ConfigSchema subsystem have substantially changed. See
212   docs/dev-config-bcbreaks.txt for details; in essence, anything that
213   had both namespace and directive now have a single unified key.
214 # Some configuration directives were renamed, specifically:
215     %AutoFormatParam.PurifierLinkifyDocURL -> %AutoFormat.PurifierLinkify.DocURL
216     %FilterParam.ExtractStyleBlocksEscaping -> %Filter.ExtractStyleBlocks.Escaping
217     %FilterParam.ExtractStyleBlocksScope -> %Filter.ExtractStyleBlocks.Scope
218     %FilterParam.ExtractStyleBlocksTidyImpl -> %Filter.ExtractStyleBlocks.TidyImpl
219   As usual, the old directive names will still work, but will throw E_NOTICE
220   errors.
221 # The allowed values for class have been relaxed to allow all of CDATA for
222   doctypes that are not XHTML 1.1 or XHTML 2.0.  For old behavior, set
223   %Attr.ClassUseCDATA to false.
224 # Instead of appending the content model to an old content model, a blank
225   element will replace the old content model.  You can use #SUPER to get
226   the old content model.
227 ! More robust support for name="" and id=""
228 ! HTMLPurifier_Config::inherit($config) allows you to inherit one
229   configuration, and have changes to that configuration be propagated
230   to all of its children.
231 ! Implement %HTML.Attr.Name.UseCDATA, which relaxes validation rules on
232   the name attribute when set. Use with care. Thanks Ian Cook for
233   sponsoring.
234 ! Implement %AutoFormat.RemoveEmpty.RemoveNbsp, which removes empty
235   tags that contain non-breaking spaces as well other whitespace. You
236   can also modify which tags should have &nbsp; maintained with
237   %AutoFormat.RemoveEmpty.RemoveNbsp.Exceptions.
238 ! Implement %Attr.AllowedClasses, which allows administrators to restrict
239   classes users can use to a specified finite set of classes, and
240   %Attr.ForbiddenClasses, which is the logical inverse.
241 ! You can now maintain your own configuration schema directories by
242   creating a config-schema.php file or passing an extra argument. Check
243   docs/dev-config-schema.html for more details.
244 ! Added HTMLPurifier_Config->serialize() method, which lets you save away
245   your configuration in a compact serial file, which you can unserialize
246   and use directly without having to go through the overhead of setup.
247 - Fix bug where URIDefinition would not get cleared if it's directives got
248   changed.
249 - Fix fatal error in HTMLPurifier_Encoder on certain platforms (probably NetBSD 5.0)
250 - Fix bug in Linkify autoformatter involving <a><span>http://foo</span></a>
251 - Make %URI.Munge not apply to links that have the same host as your host.
252 - Prevent stray </body> tag from truncating output, if a second </body>
253   is present.
254 . Created script maintenance/rename-config.php for renaming a configuration
255   directive while maintaining its alias.  This script does not change source code.
256 . Implement namespace locking for definition construction, to prevent
257   bugs where a directive is used for definition construction but is not
258   used to construct the cache hash.
260 3.3.0, released 2009-02-16
261 ! Implement CSS property 'overflow' when %CSS.AllowTricky is true.
262 ! Implement generic property list classess
263 - Fix bug with testEncodingSupportsASCII() algorithm when iconv() implementation
264   does not do the "right thing" with characters not supported in the output
265   set.
266 - Spellcheck UTF-8: The Secret To Character Encoding
267 - Fix improper removal of the contents of elements with only whitespace. Thanks
268   Eric Wald for reporting.
269 - Fix broken test suite in versions of PHP without spl_autoload_register()
270 - Fix degenerate case with YouTube filter involving double hyphens.
271   Thanks Pierre Attar for reporting.
272 - Fix YouTube rendering problem on certain versions of Firefox.
273 - Fix CSSDefinition Printer problems with decorators
274 - Add text parameter to unit tests, forces text output
275 . Add verbose mode to command line test runner, use (--verbose)
276 . Turn on unit tests for UnitConverter
277 . Fix missing version number in configuration %Attr.DefaultImageAlt (added 3.2.0)
278 . Fix newline errors that caused spurious failures when CRLF HTML Purifier was
279   tested on Linux.
280 . Removed trailing whitespace from all text files, see
281   remote-trailing-whitespace.php maintenance script.
282 . Convert configuration to use property list backend.
284 3.2.0, released 2008-10-31
285 # Using %Core.CollectErrors forces line number/column tracking on, whereas
286   previously you could theoretically turn it off.
287 # HTMLPurifier_Injector->notifyEnd() is formally deprecated. Please
288   use handleEnd() instead.
289 ! %Output.AttrSort for when you need your attributes in alphabetical order to
290   deal with a bug in FCKEditor. Requested by frank farmer.
291 ! Enable HTML comments when %HTML.Trusted is on. Requested by Waldo Jaquith.
292 ! Proper support for name attribute. It is now allowed and equivalent to the id
293   attribute in a and img tags, and is only converted to id when %HTML.TidyLevel
294   is heavy (for all doctypes).
295 ! %AutoFormat.RemoveEmpty to remove some empty tags from documents. Please don't
296   use on hand-written HTML.
297 ! Add error-cases for unsupported elements in MakeWellFormed. This enables
298   the strategy to be used, standalone, on untrusted input.
299 ! %Core.AggressivelyFixLt is on by default. This causes more sensible
300   processing of left angled brackets in smileys and other whatnot.
301 ! Test scripts now have a 'type' parameter, which lets you say 'htmlpurifier',
302   'phpt', 'vtest', etc. in order to only execute those tests. This supercedes
303   the --only-phpt parameter, although for backwards-compatibility the flag
304   will still work.
305 ! AutoParagraph auto-formatter will now preserve double-newlines upon output.
306   Users who are not performing inbound filtering, this may seem a little
307   useless, but as a bonus, the test suite and handling of edge cases is also
308   improved.
309 ! Experimental implementation of forms for %HTML.Trusted
310 ! Track column numbers when maintain line numbers is on
311 ! Proprietary 'background' attribute on table-related elements converted into
312   corresponding CSS.  Thanks Fusemail for sponsoring this feature!
313 ! Add forward(), forwardUntilEndToken(), backward() and current() to Injector
314   supertype.
315 ! HTMLPurifier_Injector->handleEnd() permits modification to end tokens. The
316   time of operation varies slightly from notifyEnd() as *all* end tokens are
317   processed by the injector before they are subject to the well-formedness rules.
318 ! %Attr.DefaultImageAlt allows overriding default behavior of setting alt to
319   basename of image when not present.
320 ! %AutoFormat.DisplayLinkURI neuters <a> tags into plain text URLs.
321 - Fix two bugs in %URI.MakeAbsolute; one involving empty paths in base URLs,
322   the other involving an undefined $is_folder error.
323 - Throw error when %Core.Encoding is set to a spurious value. Previously,
324   this errored silently and returned false.
325 - Redirected stderr to stdout for flush error output.
326 - %URI.DisableExternal will now use the host in %URI.Base if %URI.Host is not
327   available.
328 - Do not re-munge URL if the output URL has the same host as the input URL.
329   Requested by Chris.
330 - Fix error in documentation regarding %Filter.ExtractStyleBlocks
331 - Prevent <![CDATA[<body></body>]]> from triggering %Core.ConvertDocumentToFragment
332 - Fix bug with inline elements in blockquotes conflicting with strict doctype
333 - Detect if HTML support is disabled for DOM by checking for loadHTML() method.
334 - Fix bug where dots and double-dots in absolute URLs without hostname were
335   not collapsed by URIFilter_MakeAbsolute.
336 - Fix bug with anonymous modules operating on SafeEmbed or SafeObject elements
337   by reordering their addition.
338 - Will now throw exception on many error conditions during lexer creation; also
339   throw an exception when MaintainLineNumbers is true, but a non-tracksLineNumbers
340   is being used.
341 - Detect if domxml extension is loaded, and use DirectLEx accordingly.
342 - Improve handling of big numbers with floating point arithmetic in UnitConverter.
343   Reported by David Morton.
344 . Strategy_MakeWellFormed now operates in-place, saving memory and allowing
345   for more interesting filter-backtracking
346 . New HTMLPurifier_Injector->rewind() functionality, allows injectors to rewind
347   index to reprocess tokens.
348 . StringHashParser now allows for multiline sections with "empty" content;
349   previously the section would remain undefined.
350 . Added --quick option to multitest.php, which tests only the most recent
351   release for each series.
352 . Added --distro option to multitest.php, which accepts either 'normal' or
353   'standalone'. This supercedes --exclude-normal and --exclude-standalone
355 3.1.1, released 2008-06-19
356 # %URI.Munge now, by default, does not munge resources (for example, <img src="">)
357   In order to enable this again, please set %URI.MungeResources to true.
358 ! More robust imagecrash protection with height/width CSS with %CSS.MaxImgLength,
359   and height/width HTML with %HTML.MaxImgLength.
360 ! %URI.MungeSecretKey for secure URI munging. Thanks Chris
361   for sponsoring this feature. Check out the corresponding documentation
362   for details. (Att Nightly testers: The API for this feature changed before
363   the general release. Namely, rename your directives %URI.SecureMungeSecretKey =>
364   %URI.MungeSecretKey and and %URI.SecureMunge => %URI.Munge)
365 ! Implemented post URI filtering. Set member variable $post to true to set
366   a URIFilter as such.
367 ! Allow modules to define injectors via $info_injector. Injectors are
368   automatically disabled if injector's needed elements are not found.
369 ! Support for "safe" objects added, use %HTML.SafeObject and %HTML.SafeEmbed.
370   Thanks Chris for sponsoring. If you've been using ad hoc code from the
371   forums, PLEASE use this instead.
372 ! Added substitutions for %e, %n, %a and %p in %URI.Munge (in order,
373   embedded, tag name, attribute name, CSS property name). See %URI.Munge
374   for more details. Requested by Jochem Blok.
375 - Disable percent height/width attributes for img.
376 - AttrValidator operations are now atomic; updates to attributes are not
377   manifest in token until end of operations. This prevents naughty internal
378   code from directly modifying CurrentToken when they're not supposed to.
379   This semantics change was requested by frank farmer.
380 - Percent encoding checks enabled for URI query and fragment
381 - Fix stray backslashes in font-family; CSS Unicode character escapes are
382   now properly resolved (although *only* in font-family). Thanks Takeshi Terada
383   for reporting.
384 - Improve parseCDATA algorithm to take into account newline normalization
385 - Account for browser confusion between Yen character and backslash in
386   Shift_JIS encoding. This fix generalizes to any other encoding which is not
387   a strict superset of printable ASCII. Thanks Takeshi Terada for reporting.
388 - Fix missing configuration parameter in Generator calls. Thanks vs for the
389   partial patch.
390 - Improved adherence to Unicode by checking for non-character codepoints.
391   Thanks Geoffrey Sneddon for reporting. This may result in degraded
392   performance for extremely large inputs.
393 - Allow CSS property-value pair ''text-decoration: none''. Thanks Jochem Blok
394   for reporting.
395 . Added HTMLPurifier_UnitConverter and HTMLPurifier_Length for convenient
396   handling of CSS-style lengths. HTMLPurifier_AttrDef_CSS_Length now uses
397   this class.
398 . API of HTMLPurifier_AttrDef_CSS_Length changed from __construct($disable_negative)
399   to __construct($min, $max). __construct(true) is equivalent to
400   __construct('0').
401 . Added HTMLPurifier_AttrDef_Switch class
402 . Rename HTMLPurifier_HTMLModule_Tidy->construct() to setup() and bubble method
403   up inheritance hierarchy to HTMLPurifier_HTMLModule. All HTMLModules
404   get this called with the configuration object.  All modules now
405   use this rather than __construct(), although legacy code using constructors
406   will still work--the new format, however, lets modules access the
407   configuration object for HTML namespace dependant tweaks.
408 . AttrDef_HTML_Pixels now takes a single construction parameter, pixels.
409 . ConfigSchema data-structure heavily optimized; on average it uses a third
410   the memory it did previously. The interface has changed accordingly,
411   consult changes to HTMLPurifier_Config for details.
412 . Variable parsing types now are magic integers instead of strings
413 . Added benchmark for ConfigSchema
414 . HTMLPurifier_Generator requires $config and $context parameters. If you
415   don't know what they should be, use HTMLPurifier_Config::createDefault()
416   and new HTMLPurifier_Context().
417 . Printers now properly distinguish between output configuration, and
418   target configuration. This is not applicable to scripts using
419   the Printers for HTML Purifier related tasks.
420 . HTML/CSS Printers must be primed with prepareGenerator($gen_config), otherwise
421   fatal errors will ensue.
422 . URIFilter->prepare can return false in order to abort loading of the filter
423 . Factory for AttrDef_URI implemented, URI#embedded to indicate URI that embeds
424   an external resource.
425 . %URI.Munge functionality factored out into a post-filter class.
426 . Added CurrentCSSProperty context variable during CSS validation
428 3.1.0, released 2008-05-18
429 # Unnecessary references to objects (vestiges of PHP4) removed from method
430   signatures.  The following methods do not need references when assigning from
431   them and will result in E_STRICT errors if you try:
432     + HTMLPurifier_Config->get*Definition() [* = HTML, CSS]
433     + HTMLPurifier_ConfigSchema::instance()
434     + HTMLPurifier_DefinitionCacheFactory::instance()
435     + HTMLPurifier_DefinitionCacheFactory->create()
436     + HTMLPurifier_DoctypeRegistry->register()
437     + HTMLPurifier_DoctypeRegistry->get()
438     + HTMLPurifier_HTMLModule->addElement()
439     + HTMLPurifier_HTMLModule->addBlankElement()
440     + HTMLPurifier_LanguageFactory::instance()
441 # Printer_ConfigForm's get*() functions were static-ified
442 # %HTML.ForbiddenAttributes requires attribute declarations to be in the
443   form of tag@attr, NOT tag.attr (which will throw an error and won't do
444   anything). This is for forwards compatibility with XML; you'd do best
445   to migrate an %HTML.AllowedAttributes directives to this syntax too.
446 ! Allow index to be false for config from form creation
447 ! Added HTMLPurifier::VERSION constant
448 ! Commas, not dashes, used for serializer IDs. This change is forwards-compatible
449   and allows for version numbers like "3.1.0-dev".
450 ! %HTML.Allowed deals gracefully with whitespace anywhere, anytime!
451 ! HTML Purifier's URI handling is a lot more robust, with much stricter
452   validation checks and better percent encoding handling. Thanks Gareth Heyes
453   for indicating security vulnerabilities from lax percent encoding.
454 ! Bootstrap autoloader deals more robustly with classes that don't exist,
455   preventing class_exists($class, true) from barfing.
456 - InterchangeBuilder now alphabetizes its lists
457 - Validation error in configdoc output fixed
458 - Iconv and other encoding errors muted even with custom error handlers that
459   do not honor error_reporting
460 - Add protection against imagecrash attack with CSS height/width
461 - HTMLPurifier::instance() created for consistency, is equivalent to getInstance()
462 - Fixed and revamped broken ConfigForm smoketest
463 - Bug with bool/null fields in Printer_ConfigForm fixed
464 - Bug with global forbidden attributes fixed
465 - Improved error messages for allowed and forbidden HTML elements and attributes
466 - Missing (or null) in configdoc documentation restored
467 - If DOM throws and exception during parsing with PH5P (occurs in newer versions
468   of DOM), HTML Purifier punts to DirectLex
469 - Fatal error with unserialization of ScriptRequired
470 - Created directories are now chmod'ed properly
471 - Fixed bug with fallback languages in LanguageFactory
472 - Standalone testing setup properly with autoload
473 . Out-of-date documentation revised
474 . UTF-8 encoding check optimization as suggested by Diego
475 . HTMLPurifier_Error removed in favor of exceptions
476 . More copy() function removed; should use clone instead
477 . More extensive unit tests for HTMLDefinition
478 . assertPurification moved to central harness
479 . HTMLPurifier_Generator accepts $config and $context parameters during
480   instantiation, not runtime
481 . Double-quotes outside of attribute values are now unescaped
483 3.1.0rc1, released 2008-04-22
484 # Autoload support added. Internal require_once's removed in favor of an
485   explicit require list or autoloading. To use HTML Purifier,
486   you must now either use HTMLPurifier.auto.php
487   or HTMLPurifier.includes.php; setting the include path and including
488   HTMLPurifier.php is insufficient--in such cases include HTMLPurifier.autoload.php
489   as well to register our autoload handler (or modify your autoload function
490   to check HTMLPurifier_Bootstrap::getPath($class)). You can also use
491   HTMLPurifier.safe-includes.php for a less performance friendly but more
492   user-friendly library load.
493 # HTMLPurifier_ConfigSchema static functions are officially deprecated. Schema
494   information is stored in the ConfigSchema directory, and the
495   maintenance/generate-schema-cache.php generates the schema.ser file, which
496   is now instantiated. Support for userland schema changes coming soon!
497 # HTMLPurifier_Config will now throw E_USER_NOTICE when you use a directive
498   alias; to get rid of these errors just modify your configuration to use
499   the new directive name.
500 # HTMLPurifier->addFilter is deprecated; built-in filters can now be
501   enabled using %Filter.$filter_name or by setting your own filters using
502   %Filter.Custom
503 # Directive-level safety properties superceded in favor of module-level
504   safety. Internal method HTMLModule->addElement() has changed, although
505   the externally visible HTMLDefinition->addElement has *not* changed.
506 ! Extra utility classes for testing and non-library operations can
507   be found in extras/. Specifically, these are FSTools and ConfigDoc.
508   You may find a use for these in your own project, but right now they
509   are highly experimental and volatile.
510 ! Integration with PHPT allows for automated smoketests
511 ! Limited support for proprietary HTML elements, namely <marquee>, sponsored
512   by Chris. You can enable them with %HTML.Proprietary if your client
513   demands them.
514 ! Support for !important CSS cascade modifier. By default, this will be stripped
515   from CSS, but you can enable it using %CSS.AllowImportant
516 ! Support for display and visibility CSS properties added, set %CSS.AllowTricky
517   to true to use them.
518 ! HTML Purifier now has its own Exception hierarchy under HTMLPurifier_Exception.
519   Developer error (not enduser error) can cause these to be triggered.
520 ! Experimental kses() wrapper introduced with HTMLPurifier.kses.php
521 ! Finally %CSS.AllowedProperties for tweaking allowed CSS properties without
522   mucking around with HTMLPurifier_CSSDefinition
523 ! ConfigDoc output has been enhanced with version and deprecation info.
524 ! %HTML.ForbiddenAttributes and %HTML.ForbiddenElements implemented.
525 - Autoclose now operates iteratively, i.e. <span><span><div> now has
526   both span tags closed.
527 - Various HTMLPurifier_Config convenience functions now accept another parameter
528   $schema which defines what HTMLPurifier_ConfigSchema to use besides the
529   global default.
530 - Fix bug with trusted script handling in libxml versions later than 2.6.28.
531 - Fix bug in ExtractStyleBlocks with comments in style tags
532 - Fix bug in comment parsing for DirectLex
533 - Flush output now displayed when in command line mode for unit tester
534 - Fix bug with rgb(0, 1, 2) color syntax with spaces inside shorthand syntax
535 - HTMLPurifier_HTMLDefinition->addAttribute can now be called multiple times
536   on the same element without emitting errors.
537 - Fixed fatal error in PH5P lexer with invalid tag names
538 . Plugins now get their own changelogs according to project conventions.
539 . Convert tokens to use instanceof, reducing memory footprint and
540   improving comparison speed.
541 . Dry runs now supported in SimpleTest; testing facilities improved
542 . Bootstrap class added for handling autoloading functionality
543 . Implemented recursive glob at FSTools->globr
544 . ConfigSchema now has instance methods for all corresponding define*
545   static methods.
546 . A couple of new historical maintenance scripts were added.
547 . HTMLPurifier/HTMLModule/Tidy/XHTMLAndHTML4.php split into two files
548 . tests/index.php can now be run from any directory.
549 . HTMLPurifier_Token subclasses split into seperate files
550 . HTMLPURIFIER_PREFIX now is defined in Bootstrap.php, NOT HTMLPurifier.php
551 . HTMLPURIFIER_PREFIX can now be defined outside of HTML Purifier
552 . New --php=php flag added, allows PHP executable to be specified (command
553   line only!)
554 . htmlpurifier_add_test() preferred method to translate test files in to
555   classes, because it handles PHPT files too.
556 . Debugger class is deprecated and will be removed soon.
557 . Command line argument parsing for testing scripts revamped, now --opt value
558   format is supported.
559 . Smoketests now cleanup after magic quotes
560 . Generator now can output comments (however, comments are still stripped
561   from HTML Purifier output)
562 . HTMLPurifier_ConfigSchema->validate() deprecated in favor of
563   HTMLPurifier_VarParser->parse()
564 . Integers auto-cast into float type by VarParser.
565 . HTMLPURIFIER_STRICT removed; no validation is performed on runtime, only
566   during cache generation
567 . Reordered script calls in maintenance/flush.php
568 . Command line scripts now honor exit codes
569 . When --flush fails in unit testers, abort tests and print message
570 . Improved documentation in docs/dev-flush.html about the maintenance scripts
571 . copy() methods removed in favor of clone keyword
573 3.0.0, released 2008-01-06
574 # HTML Purifier is PHP 5 only! The 2.1.x branch will be maintained
575   until PHP 4 is completely deprecated, but no new features will be added
576   to it.
577   + Visibility declarations added
578   + Constructor methods renamed to __construct()
579   + PHP4 reference cruft removed (in progress)
580 ! CSS properties are now case-insensitive
581 ! DefinitionCacheFactory now can register new implementations
582 ! New HTMLPurifier_Filter_ExtractStyleBlocks for extracting <style> from
583   documents and cleaning their contents up. Requires the CSSTidy library
584   <http://csstidy.sourceforge.net/>. You can access the blocks with the
585   'StyleBlocks' Context variable ($purifier->context->get('StyleBlocks')).
586   The output CSS can also be "scoped" for a specific element, use:
587   %Filter.ExtractStyleBlocksScope
588 ! Experimental support for some proprietary CSS attributes allowed:
589   opacity (and all of the browser-specific equivalents) and scrollbar colors.
590   Enable by setting %CSS.Proprietary to true.
591 - Colors missing # but in hex form will be corrected
592 - CSS Number algorithm improved
593 - Unit testing and multi-testing now on steroids: command lines,
594   XML output, and other goodies now added.
595 . Unit tests for Injector improved
596 . New classes:
597   + HTMLPurifier_AttrDef_CSS_AlphaValue
598   + HTMLPurifier_AttrDef_CSS_Filter
599 . Multitest now has a file docblock
601 2.1.3, released 2007-11-05
602 ! tests/multitest.php allows you to test multiple versions by running
603   tests/index.php through multiple interpreters using `phpv` shell
604   script (you must provide this script!)
605 - Fixed poor include ordering for Email URI AttrDefs, causes fatal errors
606   on some systems.
607 - Injector algorithm further refined: off-by-one error regarding skip
608   counts for dormant injectors fixed
609 - Corrective blockquote definition now enabled for HTML 4.01 Strict
610 - Fatal error when <img> tag (or any other element with required attributes)
611   has 'id' attribute fixed, thanks NykO18 for reporting
612 - Fix warning emitted when a non-supported URI scheme is passed to the
613   MakeAbsolute URIFilter, thanks NykO18 (again)
614 - Further refine AutoParagraph injector. Behavior inside of elements
615   allowing paragraph tags clarified: only inline content delimeted by
616   double newlines (not block elements) are paragraphed.
617 - Buggy treatment of end tags of elements that have required attributes
618   fixed (does not manifest on default tag-set)
619 - Spurious internal content reorganization error suppressed
620 - HTMLDefinition->addElement now returns a reference to the created
621   element object, as implied by the documentation
622 - Phorum mod's HTML Purifier help message expanded (unreleased elsewhere)
623 - Fix a theoretical class of infinite loops from DirectLex reported
624   by Nate Abele
625 - Work around unnecessary DOMElement type-cast in PH5P that caused errors
626   in PHP 5.1
627 - Work around PHP 4 SimpleTest lack-of-error complaining for one-time-only
628   HTMLDefinition errors, this may indicate problems with error-collecting
629   facilities in PHP 5
630 - Make ErrorCollectorEMock work in both PHP 4 and PHP 5
631 - Make PH5P work with PHP 5.0 by removing unnecessary array parameter typedef
632 . %Core.AcceptFullDocuments renamed to %Core.ConvertDocumentToFragment
633   to better communicate its purpose
634 . Error unit tests can now specify the expectation of no errors. Future
635   iterations of the harness will be extremely strict about what errors
636   are allowed
637 . Extend Injector hooks to allow for more powerful injector routines
638 . HTMLDefinition->addBlankElement created, as according to the HTMLModule
639   method
640 . Doxygen configuration file updated, with minor improvements
641 . Test runner now checks for similarly named files in conf/ directory too.
642 . Minor cosmetic change to flush-definition-cache.php: trailing newline is
643   outputted
644 . Maintenance script for generating PH5P patch added, original PH5P source
645   file also added under version control
646 . Full unit test runner script title made more descriptive with PHP version
647 . Updated INSTALL file to state that 4.3.7 is the earliest version we
648   are actively testing
650 2.1.2, released 2007-09-03
651 ! Implemented Object module for trusted users
652 ! Implemented experimental HTML5 parsing mode using PH5P. To use, add
653   this to your code:
654         require_once 'HTMLPurifier/Lexer/PH5P.php';
655         $config->set('Core', 'LexerImpl', 'PH5P');
656   Note that this Lexer introduces some classes not in the HTMLPurifier
657   namespace.  Also, this is PHP5 only.
658 ! CSS property border-spacing implemented
659 - Fix non-visible parsing error in DirectLex with empty tags that have
660   slashes inside attribute values.
661 - Fix typo in CSS definition: border-collapse:seperate; was incorrectly
662   accepted as valid CSS. Usually non-visible, because this styling is the
663   default for tables in most browsers. Thanks Brett Zamir for pointing
664   this out.
665 - Fix validation errors in configuration form
666 - Hammer out a bunch of edge-case bugs in the standalone distribution
667 - Inclusion reflection removed from URISchemeRegistry; you must manually
668   include any new schema files you wish to use
669 - Numerous typo fixes in documentation thanks to Brett Zamir
670 . Unit test refactoring for one logical test per test function
671 . Config and context parameters in ComplexHarness deprecated: instead, edit
672   the $config and $context member variables
673 . HTML wrapper in DOMLex now takes DTD identifiers into account; doesn't
674   really make a difference, but is good for completeness sake
675 . merge-library.php script refactored for greater code reusability and
676   PHP4 compatibility
678 2.1.1, released 2007-08-04
679 - Fix show-stopper bug in %URI.MakeAbsolute functionality
680 - Fix PHP4 syntax error in standalone version
681 . Add prefix directory to include path for standalone, this prevents
682   other installations from clobbering the standalone's URI schemes
683 . Single test methods can be invoked by prefixing with __only
685 2.1.0, released 2007-08-02
686 # flush-htmldefinition-cache.php superseded in favor of a generic
687   flush-definition-cache.php script, you can clear a specific cache
688   by passing its name as a parameter to the script
689 ! Phorum mod implemented for HTML Purifier
690 ! With %Core.AggressivelyFixLt, <3 and similar emoticons no longer
691   trigger HTML removal in PHP5 (DOMLex). This directive is not necessary
692   for PHP4 (DirectLex).
693 ! Standalone file now available, which greatly reduces the amount of
694   includes (although there are still a few files that reside in the
695   standalone folder)
696 ! Relative URIs can now be transformed into their absolute equivalents
697   using %URI.Base and %URI.MakeAbsolute
698 ! Ruby implemented for XHTML 1.1
699 ! You can now define custom URI filtering behavior, see enduser-uri-filter.html
700   for more details
701 ! UTF-8 font names now supported in CSS
702 - AutoFormatters emit friendly error messages if tags or attributes they
703   need are not allowed
704 - ConfigForm's compactification of directive names is now configurable
705 - AutoParagraph autoformatter algorithm refined after field-testing
706 - XHTML 1.1 now applies XHTML 1.0 Strict cleanup routines, namely
707   blockquote wrapping
708 - Contents of <style> tags removed by default when tags are removed
709 . HTMLPurifier_Config->getSerial() implemented, this is extremely useful
710   for output cache invalidation
711 . ConfigForm printer now can retrieve CSS and JS files as strings, in
712   case HTML Purifier's directory is not publically accessible
713 . Introduce new text/itext configuration directive values: these represent
714   longer strings that would be more appropriately edited with a textarea
715 . Allow newlines to act as separators for lists, hashes, lookups and
716   %HTML.Allowed
717 . ConfigForm generates textareas instead of text inputs for lists, hashes,
718   lookups, text and itext fields
719 . Hidden element content removal genericized: %Core.HiddenElements can
720   be used to customize this behavior, by default <script> and <style> are
721   hidden
722 . Added HTMLPURIFIER_PREFIX constant, should be used instead of dirname(__FILE__)
723 . Custom ChildDef added to default include list
724 . URIScheme reflection improved: will not attempt to include file if class
725   already exists. May clobber autoload, so I need to keep an eye on it
726 . ConfigSchema heavily optimized, will only collect information and validate
727   definitions when HTMLPURIFIER_SCHEMA_STRICT is true.
728 . AttrDef_URI unit tests and implementation refactored
729 . benchmarks/ directory now protected from public view with .htaccess file;
730   run the tests via command line
731 . URI scheme is munged off if there is no authority and the scheme is the
732   default one
733 . All unit tests inherit from HTMLPurifier_Harness, not UnitTestCase
734 . Interface for URIScheme changed
735 . Generic URI object to hold components of URI added, most systems involved
736   in URI validation have been migrated to use it
737 . Custom filtering for URIs factored out to URIDefinition interface for
738   maximum extensibility
740 2.0.1, released 2007-06-27
741 ! Tag auto-closing now based on a ChildDef heuristic rather than a
742   manually set auto_close array; some behavior may change
743 ! Experimental AutoFormat functionality added: auto-paragraph and
744   linkify your HTML input by setting %AutoFormat.AutoParagraph and
745   %AutoFormat.Linkify to true
746 ! Newlines normalized internally, and then converted back to the
747   value of PHP_EOL. If this is not desired, set your newline format
748   using %Output.Newline.
749 ! Beta error collection, messages are implemented for the most generic
750   cases involving Lexing or Strategies
751 - Clean up special case code for <script> tags
752 - Reorder includes for DefinitionCache decorators, fixes a possible
753   missing class error
754 - Fixed bug where manually modified definitions were not saved via cache
755   (mostly harmless, except for the fact that it would be a little slower)
756 - Configuration objects with different serials do not clobber each
757   others when revision numbers are unequal
758 - Improve Serializer DefinitionCache directory permissions checks
759 - DefinitionCache no longer throws errors when it encounters old
760   serial files that do not conform to the current style
761 - Stray xmlns attributes removed from configuration documentation
762 - configForm.php smoketest no longer has XSS vulnerability due to
763   unescaped print_r output
764 - Printer adheres to configuration's directives on output format
765 - Fix improperly named form field in ConfigForm printer
766 . Rewire some test-cases to swallow errors rather than expect them
767 . HTMLDefinition printer updated with some of the new attributes
768 . DefinitionCache keys reordered to reflect precedence: version number,
769   hash, then revision number
770 . %Core.DefinitionCache renamed to %Cache.DefinitionImpl
771 . Interlinking in configuration documentation added using
772   Injector_PurifierLinkify
773 . Directives now keep track of aliases to themselves
774 . Error collector now requires a severity to be passed, use PHP's internal
775   error constants for this
776 . HTMLPurifier_Config::getAllowedDirectivesForForm implemented, allows
777   much easier selective embedding of configuration values
778 . Doctype objects now accept public and system DTD identifiers
779 . %HTML.Doctype is now constrained by specific values, to specify a custom
780   doctype use new %HTML.CustomDoctype
781 . ConfigForm truncates long directives to keep the form small, and does
782   not re-output namespaces
784 2.0.0, released 2007-06-20
785 # Completely refactored HTMLModuleManager, decentralizing safety
786   information
787 # Transform modules changed to Tidy modules, which offer more flexibility
788   and better modularization
789 # Configuration object now finalizes itself when a read operation is
790   performed on it, ensuring that its internal state stays consistent.
791   To revert this behavior, you can set the $autoFinalize member variable
792   off, but it's not recommended.
793 # New compact syntax for AttrDef objects that can be used to instantiate
794   new objects via make()
795 # Definitions (esp. HTMLDefinition) are now cached for a significant
796   performance boost. You can disable caching by setting %Core.DefinitionCache
797   to null. You CANNOT edit raw definitions without setting the corresponding
798   DefinitionID directive (%HTML.DefinitionID for HTMLDefinition).
799 # Contents between <script> tags are now completely removed if <script>
800   is not allowed
801 # Prototype-declarations for Lexer removed in favor of configuration
802   determination of Lexer implementations.
803 ! HTML Purifier now works in PHP 4.3.2.
804 ! Configuration form-editing API makes tweaking HTMLPurifier_Config a
805   breeze!
806 ! Configuration directives that accept hashes now allow new string
807   format: key1:value1,key2:value2
808 ! ConfigDoc now factored into OOP design
809 ! All deprecated elements now natively supported
810 ! Implement TinyMCE styled whitelist specification format in
811   %HTML.Allowed
812 ! Config object gives more friendly error messages when things go wrong
813 ! Advanced API implemented: easy functions for creating elements (addElement)
814   and attributes (addAttribute) on HTMLDefinition
815 ! Add native support for required attributes
816 - Deprecated and removed EnableRedundantUTF8Cleaning. It didn't even work!
817 - DOMLex will not emit errors when a custom error handler that does not
818   honor error_reporting is used
819 - StrictBlockquote child definition refrains from wrapping whitespace
820   in tags now.
821 - Bug resulting from tag transforms to non-allowed elements fixed
822 - ChildDef_Custom's regex generation has been improved, removing several
823   false positives
824 . Unit test for ElementDef created, ElementDef behavior modified to
825   be more flexible
826 . Added convenience functions for HTMLModule constructors
827 . AttrTypes now has accessor functions that should be used instead
828   of directly manipulating info
829 . TagTransform_Center deprecated in favor of generic TagTransform_Simple
830 . Add extra protection in AttrDef_URI against phantom Schemes
831 . Doctype object added to HTMLDefinition which describes certain aspects
832   of the operational document type
833 . Lexer is now pre-emptively included, with a conditional include for the
834   PHP5 only version.
835 . HTMLDefinition and CSSDefinition have a common parent class: Definition.
836 . DirectLex can now track line-numbers
837 . Preliminary error collector is in place, although no code actually reports
838   errors yet
839 . Factor out most of ValidateAttributes to new AttrValidator class
841 1.6.1, released 2007-05-05
842 ! Support for more deprecated attributes via transformations:
843   + hspace and vspace in img
844   + size and noshade in hr
845   + nowrap in td
846   + clear in br
847   + align in caption, table, img and hr
848   + type in ul, ol and li
849 ! DirectLex now preserves text in which a < bracket is followed by
850   a non-alphanumeric character. This means that certain emoticons
851   are now preserved.
852 ! %Core.RemoveInvalidImg is now operational, when set to false invalid
853   images will hang around with an empty src
854 ! target attribute in a tag supported, use %Attr.AllowedFrameTargets
855   to enable
856 ! CSS property white-space now allows nowrap (supported in all modern
857   browsers) but not others (which have spotty browser implementations)
858 ! XHTML 1.1 mode now sort-of works without any fatal errors, and
859   lang is now moved over to xml:lang.
860 ! Attribute transformation smoketest available at smoketests/attrTransform.php
861 ! Transformation of font's size attribute now handles super-large numbers
862 - Possibly fatal bug with __autoload() fixed in module manager
863 - Invert HTMLModuleManager->addModule() processing order to check
864   prefixes first and then the literal module
865 - Empty strings get converted to empty arrays instead of arrays with
866   an empty string in them.
867 - Merging in attribute lists now works.
868 . Demo script removed: it has been added to the website's repository
869 . Basic.php script modified to work out of the box
870 . Refactor AttrTransform classes to reduce duplication
871 . AttrTransform_TextAlign axed in favor of a more general
872   AttrTransform_EnumToCSS, refer to HTMLModule/TransformToStrict.php to
873   see how the new equivalent is implemented
874 . Unit tests now use exclusively assertIdentical
876 1.6.0, released 2007-04-01
877 ! Support for most common deprecated attributes via transformations:
878   + bgcolor in td, th, tr and table
879   + border in img
880   + name in a and img
881   + width in td, th and hr
882   + height in td, th
883 ! Support for CSS attribute 'height' added
884 ! Support for rel and rev attributes in a tags added, use %Attr.AllowedRel
885   and %Attr.AllowedRev to activate
886 - You can define ID blacklists using regular expressions via
887   %Attr.IDBlacklistRegexp
888 - Error messages are emitted when you attempt to "allow" elements or
889   attributes that HTML Purifier does not support
890 - Fix segfault in unit test. The problem is not very reproduceable and
891   I don't know what causes it, but a six line patch fixed it.
893 1.5.0, released 2007-03-23
894 ! Added a rudimentary I18N and L10N system modeled off MediaWiki. It
895   doesn't actually do anything yet, but keep your eyes peeled.
896 ! docs/enduser-utf8.html explains how to use UTF-8 and HTML Purifier
897 ! Newly structured HTMLDefinition modeled off of XHTML 1.1 modules.
898   I am loathe to release beta quality APIs, but this is exactly that;
899   don't use the internal interfaces if you're not willing to do migration
900   later on.
901 - Allow 'x' subtag in language codes
902 - Fixed buggy chameleon-support for ins and del
903 . Added support for IDREF attributes (i.e. for)
904 . Renamed HTMLPurifier_AttrDef_Class to HTMLPurifier_AttrDef_Nmtokens
905 . Removed context variable ParentType, replaced with IsInline, which
906   is false when you're not inline and an integer of the parent that
907   caused you to become inline when you are (so possibly zero)
908 . Removed ElementDef->type in favor of ElementDef->descendants_are_inline
909   and HTMLDefinition->content_sets
910 . StrictBlockquote now reports what elements its supposed to allow,
911   rather than what it does allow
912 . Removed HTMLDefinition->info_flow_elements in favor of
913   HTMLDefinition->content_sets['Flow']
914 . Removed redundant "exclusionary" definitions from DTD roster
915 . StrictBlockquote now requires a construction parameter as if it
916   were an Required ChildDef, this is the "real" set of allowed elements
917 . AttrDef partitioned into HTML, CSS and URI segments
918 . Modify Youtube filter regexp to be multiline
919 . Require both PHP5 and DOM extension in order to use DOMLex, fixes
920   some edge cases where a DOMDocument class exists in a PHP4 environment
921   due to DOM XML extension.
923 1.4.1, released 2007-01-21
924 ! docs/enduser-youtube.html updated according to new functionality
925 - YouTube IDs can have underscores and dashes
927 1.4.0, released 2007-01-21
928 ! Implemented list-style-image, URIs now allowed in list-style
929 ! Implemented background-image, background-repeat, background-attachment
930   and background-position CSS properties. Shorthand property background
931   supports all of these properties.
932 ! Configuration documentation looks nicer
933 ! Added %Core.EscapeNonASCIICharacters to workaround loss of Unicode
934   characters while %Core.Encoding is set to a non-UTF-8 encoding.
935 ! Support for configuration directive aliases added
936 ! Config object can now be instantiated from ini files
937 ! YouTube preservation code added to the core, with two lines of code
938   you can add it as a filter to your code. See smoketests/preserveYouTube.php
939   for sample code.
940 ! Moved SLOW to docs/enduser-slow.html and added code examples
941 - Replaced version check with functionality check for DOM (thanks Stephen
942   Khoo)
943 . Added smoketest 'all.php', which loads all other smoketests via frames
944 . Implemented AttrDef_CSSURI for url(http://google.com) style declarations
945 . Added convenient single test selector form on test runner
947 1.3.2, released 2006-12-25
948 ! HTMLPurifier object now accepts configuration arrays, no need to manually
949   instantiate a configuration object
950 ! Context object now accessible to outside
951 ! Added enduser-youtube.html, explains how to embed YouTube videos. See
952   also corresponding smoketest preserveYouTube.php.
953 ! Added purifyArray(), which takes a list of HTML and purifies it all
954 ! Added static member variable $version to HTML Purifier with PHP-compatible
955   version number string.
956 - Fixed fatal error thrown by upper-cased language attributes
957 - printDefinition.php: added labels, added better clarification
958 . HTMLPurifier_Config::create() added, takes mixed variable and converts into
959   a HTMLPurifier_Config object.
961 1.3.1, released 2006-12-06
962 ! Added HTMLPurifier.func.php stub for a convenient function to call the library
963 - Fixed bug in RemoveInvalidImg code that caused all images to be dropped
964   (thanks to .mario for reporting this)
965 . Standardized all attribute handling variables to attr, made it plural
967 1.3.0, released 2006-11-26
968 # Invalid images are now removed, rather than replaced with a dud
969   <img src="" alt="Invalid image" />. Previous behavior can be restored
970   with new directive %Core.RemoveInvalidImg set to false.
971 ! (X)HTML Strict now supported
972   + Transparently handles inline elements in block context (blockquote)
973 ! Added GET method to demo for easier validation, added 50kb max input size
974 ! New directive %HTML.BlockWrapper, for block-ifying inline elements
975 ! New directive %HTML.Parent, allows you to only allow inline content
976 ! New directives %HTML.AllowedElements and %HTML.AllowedAttributes to let
977   users narrow the set of allowed tags
978 ! <li value="4"> and <ul start="2"> now allowed in loose mode
979 ! New directives %URI.DisableExternalResources and %URI.DisableResources
980 ! New directive %Attr.DisableURI, which eliminates all hyperlinking
981 ! New directive %URI.Munge, munges URI so you can use some sort of redirector
982   service to avoid PageRank leaks or warn users that they are exiting your site.
983 ! Added spiffy new smoketest printDefinition.php, which lets you twiddle with
984   the configuration settings and see how the internal rules are affected.
985 ! New directive %URI.HostBlacklist for blocking links to bad hosts.
986   xssAttacks.php smoketest updated accordingly.
987 - Added missing type to ChildDef_Chameleon
988 - Remove Tidy option from demo if there is not Tidy available
989 . ChildDef_Required guards against empty tags
990 . Lookup table HTMLDefinition->info_flow_elements added
991 . Added peace-of-mind variable initialization to Strategy_FixNesting
992 . Added HTMLPurifier->info_parent_def, parent child processing made special
993 . Added internal documents briefly summarizing future progression of HTML
994 . HTMLPurifier_Config->getBatch($namespace) added
995 . More lenient casting to bool from string in HTMLPurifier_ConfigSchema
996 . Refactored ChildDef classes into their own files
998 1.2.0, released 2006-11-19
999 # ID attributes now disabled by default. New directives:
1000   + %HTML.EnableAttrID - restores old behavior by allowing IDs
1001   + %Attr.IDPrefix - %Attr.IDBlacklist alternative that munges all user IDs
1002     so that they don't collide with your IDs
1003   + %Attr.IDPrefixLocal - Same as above, but for when there are multiple
1004     instances of user content on the page
1005   + Profuse documentation on how to use these available in docs/enduser-id.txt
1006 ! Added MODx plugin <http://modxcms.com/forums/index.php/topic,6604.0.html>
1007 ! Added percent encoding normalization
1008 ! XSS attacks smoketest given facelift
1009 ! Configuration documentation now has table of contents
1010 ! Added %URI.DisableExternal, which prevents links to external websites.  You
1011   can also use %URI.Host to permit absolute linking to subdomains
1012 ! Non-accessible resources (ex. mailto) blocked from embedded URIs (img src)
1013 - Type variable in HTMLDefinition was not being set properly, fixed
1014 - Documentation updated
1015   + TODO added request Phalanger
1016   + TODO added request Native compression
1017   + TODO added request Remove redundant tags
1018   + TODO added possible plaintext formatter for HTML Purifier documentation
1019   + Updated ConfigDoc TODO
1020   + Improved inline comments in AttrDef/Class.php, AttrDef/CSS.php
1021     and AttrDef/Host.php
1022   + Revamped documentation into HTML, along with misc updates
1023 - HTMLPurifier_Context doesn't throw a variable reference error if you attempt
1024   to retrieve a non-existent variable
1025 . Switched to purify()-wide Context object registry
1026 . Refactored unit tests to minimize duplication
1027 . XSS attack sheet updated
1028 . configdoc.xml now has xml:space attached to default value nodes
1029 . Allow configuration directives to permit null values
1030 . Cleaned up test-cases to remove unnecessary swallowErrors()
1032 1.1.2, released 2006-09-30
1033 ! Add HTMLPurifier.auto.php stub file that configures include_path
1034 - Documentation updated
1035   + INSTALL document rewritten
1036   + TODO added semi-lossy conversion
1037   + API Doxygen docs' file exclusions updated
1038   + Added notes on HTML versus XML attribute whitespace handling
1039   + Noted that HTMLPurifier_ChildDef_Custom isn't being used
1040   + Noted that config object's definitions are cached versions
1041 - Fixed lack of attribute parsing in HTMLPurifier_Lexer_PEARSax3
1042 - ftp:// URIs now have their typecodes checked
1043 - Hooked up HTMLPurifier_ChildDef_Custom's unit tests (they weren't being run)
1044 . Line endings standardized throughout project (svn:eol-style standardized)
1045 . Refactored parseData() to general Lexer class
1046 . Tester named "HTML Purifier" not "HTMLPurifier"
1048 1.1.1, released 2006-09-24
1049 ! Configuration option to optionally Tidy up output for indentation to make up
1050   for dropped whitespace by DOMLex (pretty-printing for the entire application
1051   should be done by a page-wide Tidy)
1052 - Various documentation updates
1053 - Fixed parse error in configuration documentation script
1054 - Fixed fatal error in benchmark scripts, slightly augmented
1055 - As far as possible, whitespace is preserved in-between table children
1056 - Sample test-settings.php file included
1058 1.1.0, released 2006-09-16
1059 ! Directive documentation generation using XSLT
1060 ! XHTML can now be turned off, output becomes <br>
1061 - Made URI validator more forgiving: will ignore leading and trailing
1062   quotes, apostrophes and less than or greater than signs.
1063 - Enforce alphanumeric namespace and directive names for configuration.
1064 - Table child definition made more flexible, will fix up poorly ordered elements
1065 . Renamed ConfigDef to ConfigSchema
1067 1.0.1, released 2006-09-04
1068 - Fixed slight bug in DOMLex attribute parsing
1069 - Fixed rejection of case-insensitive configuration values when there is a
1070   set of allowed values.  This manifested in %Core.Encoding.
1071 - Fixed rejection of inline style declarations that had lots of extra
1072   space in them.  This manifested in TinyMCE.
1074 1.0.0, released 2006-09-01
1075 ! Shorthand CSS properties implemented: font, border, background, list-style
1076 ! Basic color keywords translated into hexadecimal values
1077 ! Table CSS properties implemented
1078 ! Support for charsets other than UTF-8 (defined by iconv)
1079 ! Malformed UTF-8 and non-SGML character detection and cleaning implemented
1080 - Fixed broken numeric entity conversion
1081 - API documentation completed
1082 . (HTML|CSS)Definition de-singleton-ized
1084 1.0.0beta, released 2006-08-16
1085 ! First public release, most functionality implemented. Notable omissions are:
1086   + Shorthand CSS properties
1087   + Table CSS properties
1088   + Deprecated attribute transformations
1090     vim: et sw=4 sts=4