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