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