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