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