Add support for pixel as a pseudo-English unit.
[htmlpurifier.git] / NEWS
blob2c64b517dfbd21bdd61f26157e170c00dd93c165
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 3.1.1, unknown release date
13 . Added HTMLPurifier_UnitConverter and HTMLPurifier_Length for convenient
14   handling of CSS-style lengths. HTMLPurifier_AttrDef_CSS_Length now uses
15   this class.
17 3.1.0, released 2008-05-18
18 # Unnecessary references to objects (vestiges of PHP4) removed from method
19   signatures.  The following methods do not need references when assigning from
20   them and will result in E_STRICT errors if you try:
21     + HTMLPurifier_Config->get*Definition() [* = HTML, CSS]
22     + HTMLPurifier_ConfigSchema::instance()
23     + HTMLPurifier_DefinitionCacheFactory::instance()
24     + HTMLPurifier_DefinitionCacheFactory->create()
25     + HTMLPurifier_DoctypeRegistry->register()
26     + HTMLPurifier_DoctypeRegistry->get()
27     + HTMLPurifier_HTMLModule->addElement()
28     + HTMLPurifier_HTMLModule->addBlankElement()
29     + HTMLPurifier_LanguageFactory::instance()
30 # Printer_ConfigForm's get*() functions were static-ified
31 # %HTML.ForbiddenAttributes requires attribute declarations to be in the
32   form of tag@attr, NOT tag.attr (which will throw an error and won't do
33   anything). This is for forwards compatibility with XML; you'd do best
34   to migrate an %HTML.AllowedAttributes directives to this syntax too.
35 ! Allow index to be false for config from form creation
36 ! Added HTMLPurifier::VERSION constant
37 ! Commas, not dashes, used for serializer IDs. This change is forwards-compatible
38   and allows for version numbers like "3.1.0-dev".
39 ! %HTML.Allowed deals gracefully with whitespace anywhere, anytime!
40 ! HTML Purifier's URI handling is a lot more robust, with much stricter
41   validation checks and better percent encoding handling.
42 ! Bootstrap autoloader deals more robustly with classes that don't exist,
43   preventing class_exists($class, true) from barfing.
44 - InterchangeBuilder now alphabetizes its lists
45 - Validation error in configdoc output fixed
46 - Iconv and other encoding errors muted even with custom error handlers that
47   do not honor error_reporting
48 - Add protection against imagecrash attack with CSS height/width
49 - HTMLPurifier::instance() created for consistency, is equivalent to getInstance()
50 - Fixed and revamped broken ConfigForm smoketest
51 - Bug with bool/null fields in Printer_ConfigForm fixed
52 - Bug with global forbidden attributes fixed
53 - Improved error messages for allowed and forbidden HTML elements and attributes
54 - Missing (or null) in configdoc documentation restored
55 - If DOM throws and exception during parsing with PH5P (occurs in newer versions
56   of DOM), HTML Purifier punts to DirectLex
57 - Fatal error with unserialization of ScriptRequired
58 - Created directories are now chmod'ed properly
59 - Fixed bug with fallback languages in LanguageFactory
60 - Standalone testing setup properly with autoload
61 . Out-of-date documentation revised
62 . UTF-8 encoding check optimization as suggested by Diego
63 . HTMLPurifier_Error removed in favor of exceptions
64 . More copy() function removed; should use clone instead
65 . More extensive unit tests for HTMLDefinition
66 . assertPurification moved to central harness
67 . HTMLPurifier_Generator accepts $config and $context parameters during
68   instantiation, not runtime
69 . Double-quotes outside of attribute values are now unescaped
71 3.1.0rc1, released 2008-04-22
72 # Autoload support added. Internal require_once's removed in favor of an
73   explicit require list or autoloading. To use HTML Purifier,
74   you must now either use HTMLPurifier.auto.php
75   or HTMLPurifier.includes.php; setting the include path and including
76   HTMLPurifier.php is insufficient--in such cases include HTMLPurifier.autoload.php
77   as well to register our autoload handler (or modify your autoload function
78   to check HTMLPurifier_Bootstrap::getPath($class)). You can also use
79   HTMLPurifier.safe-includes.php for a less performance friendly but more
80   user-friendly library load.
81 # HTMLPurifier_ConfigSchema static functions are officially deprecated. Schema
82   information is stored in the ConfigSchema directory, and the
83   maintenance/generate-schema-cache.php generates the schema.ser file, which
84   is now instantiated. Support for userland schema changes coming soon!
85 # HTMLPurifier_Config will now throw E_USER_NOTICE when you use a directive
86   alias; to get rid of these errors just modify your configuration to use
87   the new directive name.
88 # HTMLPurifier->addFilter is deprecated; built-in filters can now be
89   enabled using %Filter.$filter_name or by setting your own filters using
90   %Filter.Custom
91 # Directive-level safety properties superceded in favor of module-level
92   safety. Internal method HTMLModule->addElement() has changed, although 
93   the externally visible HTMLDefinition->addElement has *not* changed.
94 ! Extra utility classes for testing and non-library operations can
95   be found in extras/. Specifically, these are FSTools and ConfigDoc.
96   You may find a use for these in your own project, but right now they
97   are highly experimental and volatile.
98 ! Integration with PHPT allows for automated smoketests
99 ! Limited support for proprietary HTML elements, namely <marquee>, sponsored
100   by Chris. You can enable them with %HTML.Proprietary if your client
101   demands them.
102 ! Support for !important CSS cascade modifier. By default, this will be stripped
103   from CSS, but you can enable it using %CSS.AllowImportant
104 ! Support for display and visibility CSS properties added, set %CSS.AllowTricky
105   to true to use them.
106 ! HTML Purifier now has its own Exception hierarchy under HTMLPurifier_Exception.
107   Developer error (not enduser error) can cause these to be triggered.
108 ! Experimental kses() wrapper introduced with HTMLPurifier.kses.php
109 ! Finally %CSS.AllowedProperties for tweaking allowed CSS properties without
110   mucking around with HTMLPurifier_CSSDefinition
111 ! ConfigDoc output has been enhanced with version and deprecation info.
112 ! %HTML.ForbiddenAttributes and %HTML.ForbiddenElements implemented.
113 - Autoclose now operates iteratively, i.e. <span><span><div> now has
114   both span tags closed.
115 - Various HTMLPurifier_Config convenience functions now accept another parameter
116   $schema which defines what HTMLPurifier_ConfigSchema to use besides the
117   global default.
118 - Fix bug with trusted script handling in libxml versions later than 2.6.28.
119 - Fix bug in ExtractStyleBlocks with comments in style tags
120 - Fix bug in comment parsing for DirectLex
121 - Flush output now displayed when in command line mode for unit tester
122 - Fix bug with rgb(0, 1, 2) color syntax with spaces inside shorthand syntax
123 - HTMLPurifier_HTMLDefinition->addAttribute can now be called multiple times
124   on the same element without emitting errors.
125 - Fixed fatal error in PH5P lexer with invalid tag names
126 . Plugins now get their own changelogs according to project conventions.
127 . Convert tokens to use instanceof, reducing memory footprint and
128   improving comparison speed.
129 . Dry runs now supported in SimpleTest; testing facilities improved
130 . Bootstrap class added for handling autoloading functionality
131 . Implemented recursive glob at FSTools->globr
132 . ConfigSchema now has instance methods for all corresponding define* 
133   static methods.
134 . A couple of new historical maintenance scripts were added.
135 . HTMLPurifier/HTMLModule/Tidy/XHTMLAndHTML4.php split into two files
136 . tests/index.php can now be run from any directory.
137 . HTMLPurifier_Token subclasses split into seperate files
138 . HTMLPURIFIER_PREFIX now is defined in Bootstrap.php, NOT HTMLPurifier.php
139 . HTMLPURIFIER_PREFIX can now be defined outside of HTML Purifier
140 . New --php=php flag added, allows PHP executable to be specified (command
141   line only!)
142 . htmlpurifier_add_test() preferred method to translate test files in to
143   classes, because it handles PHPT files too.
144 . Debugger class is deprecated and will be removed soon.
145 . Command line argument parsing for testing scripts revamped, now --opt value
146   format is supported.
147 . Smoketests now cleanup after magic quotes
148 . Generator now can output comments (however, comments are still stripped
149   from HTML Purifier output)
150 . HTMLPurifier_ConfigSchema->validate() deprecated in favor of
151   HTMLPurifier_VarParser->parse()
152 . Integers auto-cast into float type by VarParser.
153 . HTMLPURIFIER_STRICT removed; no validation is performed on runtime, only 
154   during cache generation
155 . Reordered script calls in maintenance/flush.php
156 . Command line scripts now honor exit codes
157 . When --flush fails in unit testers, abort tests and print message
158 . Improved documentation in docs/dev-flush.html about the maintenance scripts
159 . copy() methods removed in favor of clone keyword
161 3.0.0, released 2008-01-06
162 # HTML Purifier is PHP 5 only! The 2.1.x branch will be maintained
163   until PHP 4 is completely deprecated, but no new features will be added
164   to it.
165   + Visibility declarations added
166   + Constructor methods renamed to __construct()
167   + PHP4 reference cruft removed (in progress)
168 ! CSS properties are now case-insensitive
169 ! DefinitionCacheFactory now can register new implementations
170 ! New HTMLPurifier_Filter_ExtractStyleBlocks for extracting <style> from
171   documents and cleaning their contents up. Requires the CSSTidy library
172   <http://csstidy.sourceforge.net/>. You can access the blocks with the
173   'StyleBlocks' Context variable ($purifier->context->get('StyleBlocks')).
174   The output CSS can also be "scoped" for a specific element, use:
175   %Filter.ExtractStyleBlocksScope
176 ! Experimental support for some proprietary CSS attributes allowed:
177   opacity (and all of the browser-specific equivalents) and scrollbar colors.
178   Enable by setting %CSS.Proprietary to true.
179 - Colors missing # but in hex form will be corrected
180 - CSS Number algorithm improved
181 - Unit testing and multi-testing now on steroids: command lines,
182   XML output, and other goodies now added.
183 . Unit tests for Injector improved
184 . New classes:
185   + HTMLPurifier_AttrDef_CSS_AlphaValue
186   + HTMLPurifier_AttrDef_CSS_Filter
187 . Multitest now has a file docblock
189 2.1.3, released 2007-11-05
190 ! tests/multitest.php allows you to test multiple versions by running
191   tests/index.php through multiple interpreters using `phpv` shell
192   script (you must provide this script!)
193 - Fixed poor include ordering for Email URI AttrDefs, causes fatal errors
194   on some systems.
195 - Injector algorithm further refined: off-by-one error regarding skip 
196   counts for dormant injectors fixed
197 - Corrective blockquote definition now enabled for HTML 4.01 Strict
198 - Fatal error when <img> tag (or any other element with required attributes)
199   has 'id' attribute fixed, thanks NykO18 for reporting
200 - Fix warning emitted when a non-supported URI scheme is passed to the
201   MakeAbsolute URIFilter, thanks NykO18 (again)
202 - Further refine AutoParagraph injector. Behavior inside of elements
203   allowing paragraph tags clarified: only inline content delimeted by
204   double newlines (not block elements) are paragraphed.
205 - Buggy treatment of end tags of elements that have required attributes
206   fixed (does not manifest on default tag-set)
207 - Spurious internal content reorganization error suppressed
208 - HTMLDefinition->addElement now returns a reference to the created
209   element object, as implied by the documentation
210 - Phorum mod's HTML Purifier help message expanded (unreleased elsewhere)
211 - Fix a theoretical class of infinite loops from DirectLex reported
212   by Nate Abele
213 - Work around unnecessary DOMElement type-cast in PH5P that caused errors
214   in PHP 5.1
215 - Work around PHP 4 SimpleTest lack-of-error complaining for one-time-only
216   HTMLDefinition errors, this may indicate problems with error-collecting
217   facilities in PHP 5
218 - Make ErrorCollectorEMock work in both PHP 4 and PHP 5
219 - Make PH5P work with PHP 5.0 by removing unnecessary array parameter typedef
220 . %Core.AcceptFullDocuments renamed to %Core.ConvertDocumentToFragment 
221   to better communicate its purpose
222 . Error unit tests can now specify the expectation of no errors. Future
223   iterations of the harness will be extremely strict about what errors
224   are allowed
225 . Extend Injector hooks to allow for more powerful injector routines
226 . HTMLDefinition->addBlankElement created, as according to the HTMLModule
227   method
228 . Doxygen configuration file updated, with minor improvements
229 . Test runner now checks for similarly named files in conf/ directory too.
230 . Minor cosmetic change to flush-definition-cache.php: trailing newline is
231   outputted
232 . Maintenance script for generating PH5P patch added, original PH5P source
233   file also added under version control
234 . Full unit test runner script title made more descriptive with PHP version
235 . Updated INSTALL file to state that 4.3.7 is the earliest version we
236   are actively testing
238 2.1.2, released 2007-09-03
239 ! Implemented Object module for trusted users
240 ! Implemented experimental HTML5 parsing mode using PH5P. To use, add
241   this to your code:
242         require_once 'HTMLPurifier/Lexer/PH5P.php';
243         $config->set('Core', 'LexerImpl', 'PH5P');
244   Note that this Lexer introduces some classes not in the HTMLPurifier
245   namespace.  Also, this is PHP5 only.
246 ! CSS property border-spacing implemented
247 - Fix non-visible parsing error in DirectLex with empty tags that have
248   slashes inside attribute values.
249 - Fix typo in CSS definition: border-collapse:seperate; was incorrectly
250   accepted as valid CSS. Usually non-visible, because this styling is the
251   default for tables in most browsers. Thanks Brett Zamir for pointing
252   this out.
253 - Fix validation errors in configuration form
254 - Hammer out a bunch of edge-case bugs in the standalone distribution
255 - Inclusion reflection removed from URISchemeRegistry; you must manually
256   include any new schema files you wish to use
257 - Numerous typo fixes in documentation thanks to Brett Zamir
258 . Unit test refactoring for one logical test per test function
259 . Config and context parameters in ComplexHarness deprecated: instead, edit
260   the $config and $context member variables
261 . HTML wrapper in DOMLex now takes DTD identifiers into account; doesn't
262   really make a difference, but is good for completeness sake
263 . merge-library.php script refactored for greater code reusability and
264   PHP4 compatibility
266 2.1.1, released 2007-08-04
267 - Fix show-stopper bug in %URI.MakeAbsolute functionality
268 - Fix PHP4 syntax error in standalone version
269 . Add prefix directory to include path for standalone, this prevents
270   other installations from clobbering the standalone's URI schemes
271 . Single test methods can be invoked by prefixing with __only
273 2.1.0, released 2007-08-02
274 # flush-htmldefinition-cache.php superseded in favor of a generic
275   flush-definition-cache.php script, you can clear a specific cache
276   by passing its name as a parameter to the script
277 ! Phorum mod implemented for HTML Purifier
278 ! With %Core.AggressivelyFixLt, <3 and similar emoticons no longer
279   trigger HTML removal in PHP5 (DOMLex). This directive is not necessary
280   for PHP4 (DirectLex).
281 ! Standalone file now available, which greatly reduces the amount of
282   includes (although there are still a few files that reside in the
283   standalone folder)
284 ! Relative URIs can now be transformed into their absolute equivalents
285   using %URI.Base and %URI.MakeAbsolute
286 ! Ruby implemented for XHTML 1.1
287 ! You can now define custom URI filtering behavior, see enduser-uri-filter.html
288   for more details
289 ! UTF-8 font names now supported in CSS
290 - AutoFormatters emit friendly error messages if tags or attributes they
291   need are not allowed
292 - ConfigForm's compactification of directive names is now configurable
293 - AutoParagraph autoformatter algorithm refined after field-testing
294 - XHTML 1.1 now applies XHTML 1.0 Strict cleanup routines, namely
295   blockquote wrapping
296 - Contents of <style> tags removed by default when tags are removed
297 . HTMLPurifier_Config->getSerial() implemented, this is extremely useful
298   for output cache invalidation
299 . ConfigForm printer now can retrieve CSS and JS files as strings, in
300   case HTML Purifier's directory is not publically accessible
301 . Introduce new text/itext configuration directive values: these represent
302   longer strings that would be more appropriately edited with a textarea
303 . Allow newlines to act as separators for lists, hashes, lookups and
304   %HTML.Allowed
305 . ConfigForm generates textareas instead of text inputs for lists, hashes,
306   lookups, text and itext fields
307 . Hidden element content removal genericized: %Core.HiddenElements can
308   be used to customize this behavior, by default <script> and <style> are
309   hidden
310 . Added HTMLPURIFIER_PREFIX constant, should be used instead of dirname(__FILE__)
311 . Custom ChildDef added to default include list
312 . URIScheme reflection improved: will not attempt to include file if class
313   already exists. May clobber autoload, so I need to keep an eye on it
314 . ConfigSchema heavily optimized, will only collect information and validate
315   definitions when HTMLPURIFIER_SCHEMA_STRICT is true.
316 . AttrDef_URI unit tests and implementation refactored
317 . benchmarks/ directory now protected from public view with .htaccess file;
318   run the tests via command line
319 . URI scheme is munged off if there is no authority and the scheme is the
320   default one
321 . All unit tests inherit from HTMLPurifier_Harness, not UnitTestCase
322 . Interface for URIScheme changed
323 . Generic URI object to hold components of URI added, most systems involved
324   in URI validation have been migrated to use it
325 . Custom filtering for URIs factored out to URIDefinition interface for
326   maximum extensibility
328 2.0.1, released 2007-06-27
329 ! Tag auto-closing now based on a ChildDef heuristic rather than a
330   manually set auto_close array; some behavior may change
331 ! Experimental AutoFormat functionality added: auto-paragraph and
332   linkify your HTML input by setting %AutoFormat.AutoParagraph and
333   %AutoFormat.Linkify to true
334 ! Newlines normalized internally, and then converted back to the
335   value of PHP_EOL. If this is not desired, set your newline format
336   using %Output.Newline.
337 ! Beta error collection, messages are implemented for the most generic
338   cases involving Lexing or Strategies
339 - Clean up special case code for <script> tags
340 - Reorder includes for DefinitionCache decorators, fixes a possible
341   missing class error
342 - Fixed bug where manually modified definitions were not saved via cache
343   (mostly harmless, except for the fact that it would be a little slower)
344 - Configuration objects with different serials do not clobber each
345   others when revision numbers are unequal
346 - Improve Serializer DefinitionCache directory permissions checks
347 - DefinitionCache no longer throws errors when it encounters old
348   serial files that do not conform to the current style
349 - Stray xmlns attributes removed from configuration documentation
350 - configForm.php smoketest no longer has XSS vulnerability due to
351   unescaped print_r output
352 - Printer adheres to configuration's directives on output format
353 - Fix improperly named form field in ConfigForm printer
354 . Rewire some test-cases to swallow errors rather than expect them
355 . HTMLDefinition printer updated with some of the new attributes
356 . DefinitionCache keys reordered to reflect precedence: version number,
357   hash, then revision number
358 . %Core.DefinitionCache renamed to %Cache.DefinitionImpl
359 . Interlinking in configuration documentation added using
360   Injector_PurifierLinkify
361 . Directives now keep track of aliases to themselves
362 . Error collector now requires a severity to be passed, use PHP's internal
363   error constants for this
364 . HTMLPurifier_Config::getAllowedDirectivesForForm implemented, allows
365   much easier selective embedding of configuration values
366 . Doctype objects now accept public and system DTD identifiers
367 . %HTML.Doctype is now constrained by specific values, to specify a custom
368   doctype use new %HTML.CustomDoctype
369 . ConfigForm truncates long directives to keep the form small, and does
370   not re-output namespaces
372 2.0.0, released 2007-06-20
373 # Completely refactored HTMLModuleManager, decentralizing safety
374   information
375 # Transform modules changed to Tidy modules, which offer more flexibility
376   and better modularization
377 # Configuration object now finalizes itself when a read operation is
378   performed on it, ensuring that its internal state stays consistent.
379   To revert this behavior, you can set the $autoFinalize member variable 
380   off, but it's not recommended.
381 # New compact syntax for AttrDef objects that can be used to instantiate
382   new objects via make()
383 # Definitions (esp. HTMLDefinition) are now cached for a significant
384   performance boost. You can disable caching by setting %Core.DefinitionCache
385   to null. You CANNOT edit raw definitions without setting the corresponding
386   DefinitionID directive (%HTML.DefinitionID for HTMLDefinition).
387 # Contents between <script> tags are now completely removed if <script>
388   is not allowed
389 # Prototype-declarations for Lexer removed in favor of configuration
390   determination of Lexer implementations.
391 ! HTML Purifier now works in PHP 4.3.2.
392 ! Configuration form-editing API makes tweaking HTMLPurifier_Config a
393   breeze!
394 ! Configuration directives that accept hashes now allow new string
395   format: key1:value1,key2:value2
396 ! ConfigDoc now factored into OOP design
397 ! All deprecated elements now natively supported
398 ! Implement TinyMCE styled whitelist specification format in
399   %HTML.Allowed
400 ! Config object gives more friendly error messages when things go wrong
401 ! Advanced API implemented: easy functions for creating elements (addElement)
402   and attributes (addAttribute) on HTMLDefinition
403 ! Add native support for required attributes
404 - Deprecated and removed EnableRedundantUTF8Cleaning. It didn't even work!
405 - DOMLex will not emit errors when a custom error handler that does not
406   honor error_reporting is used
407 - StrictBlockquote child definition refrains from wrapping whitespace
408   in tags now.
409 - Bug resulting from tag transforms to non-allowed elements fixed
410 - ChildDef_Custom's regex generation has been improved, removing several
411   false positives
412 . Unit test for ElementDef created, ElementDef behavior modified to
413   be more flexible
414 . Added convenience functions for HTMLModule constructors
415 . AttrTypes now has accessor functions that should be used instead
416   of directly manipulating info
417 . TagTransform_Center deprecated in favor of generic TagTransform_Simple
418 . Add extra protection in AttrDef_URI against phantom Schemes
419 . Doctype object added to HTMLDefinition which describes certain aspects
420   of the operational document type
421 . Lexer is now pre-emptively included, with a conditional include for the
422   PHP5 only version.
423 . HTMLDefinition and CSSDefinition have a common parent class: Definition.
424 . DirectLex can now track line-numbers
425 . Preliminary error collector is in place, although no code actually reports
426   errors yet
427 . Factor out most of ValidateAttributes to new AttrValidator class
429 1.6.1, released 2007-05-05
430 ! Support for more deprecated attributes via transformations:
431   + hspace and vspace in img
432   + size and noshade in hr
433   + nowrap in td
434   + clear in br
435   + align in caption, table, img and hr
436   + type in ul, ol and li
437 ! DirectLex now preserves text in which a < bracket is followed by
438   a non-alphanumeric character. This means that certain emoticons
439   are now preserved.
440 ! %Core.RemoveInvalidImg is now operational, when set to false invalid
441   images will hang around with an empty src
442 ! target attribute in a tag supported, use %Attr.AllowedFrameTargets
443   to enable
444 ! CSS property white-space now allows nowrap (supported in all modern
445   browsers) but not others (which have spotty browser implementations)
446 ! XHTML 1.1 mode now sort-of works without any fatal errors, and
447   lang is now moved over to xml:lang.
448 ! Attribute transformation smoketest available at smoketests/attrTransform.php
449 ! Transformation of font's size attribute now handles super-large numbers
450 - Possibly fatal bug with __autoload() fixed in module manager
451 - Invert HTMLModuleManager->addModule() processing order to check
452   prefixes first and then the literal module
453 - Empty strings get converted to empty arrays instead of arrays with
454   an empty string in them.
455 - Merging in attribute lists now works.
456 . Demo script removed: it has been added to the website's repository
457 . Basic.php script modified to work out of the box
458 . Refactor AttrTransform classes to reduce duplication
459 . AttrTransform_TextAlign axed in favor of a more general
460   AttrTransform_EnumToCSS, refer to HTMLModule/TransformToStrict.php to
461   see how the new equivalent is implemented
462 . Unit tests now use exclusively assertIdentical
464 1.6.0, released 2007-04-01
465 ! Support for most common deprecated attributes via transformations:
466   + bgcolor in td, th, tr and table
467   + border in img
468   + name in a and img
469   + width in td, th and hr
470   + height in td, th
471 ! Support for CSS attribute 'height' added
472 ! Support for rel and rev attributes in a tags added, use %Attr.AllowedRel
473   and %Attr.AllowedRev to activate
474 - You can define ID blacklists using regular expressions via
475   %Attr.IDBlacklistRegexp
476 - Error messages are emitted when you attempt to "allow" elements or
477   attributes that HTML Purifier does not support
478 - Fix segfault in unit test. The problem is not very reproduceable and
479   I don't know what causes it, but a six line patch fixed it.
481 1.5.0, released 2007-03-23
482 ! Added a rudimentary I18N and L10N system modeled off MediaWiki. It
483   doesn't actually do anything yet, but keep your eyes peeled.
484 ! docs/enduser-utf8.html explains how to use UTF-8 and HTML Purifier
485 ! Newly structured HTMLDefinition modeled off of XHTML 1.1 modules.
486   I am loathe to release beta quality APIs, but this is exactly that;
487   don't use the internal interfaces if you're not willing to do migration
488   later on.
489 - Allow 'x' subtag in language codes
490 - Fixed buggy chameleon-support for ins and del
491 . Added support for IDREF attributes (i.e. for)
492 . Renamed HTMLPurifier_AttrDef_Class to HTMLPurifier_AttrDef_Nmtokens
493 . Removed context variable ParentType, replaced with IsInline, which
494   is false when you're not inline and an integer of the parent that
495   caused you to become inline when you are (so possibly zero)
496 . Removed ElementDef->type in favor of ElementDef->descendants_are_inline
497   and HTMLDefinition->content_sets
498 . StrictBlockquote now reports what elements its supposed to allow,
499   rather than what it does allow
500 . Removed HTMLDefinition->info_flow_elements in favor of
501   HTMLDefinition->content_sets['Flow']
502 . Removed redundant "exclusionary" definitions from DTD roster
503 . StrictBlockquote now requires a construction parameter as if it
504   were an Required ChildDef, this is the "real" set of allowed elements
505 . AttrDef partitioned into HTML, CSS and URI segments
506 . Modify Youtube filter regexp to be multiline
507 . Require both PHP5 and DOM extension in order to use DOMLex, fixes
508   some edge cases where a DOMDocument class exists in a PHP4 environment
509   due to DOM XML extension.
511 1.4.1, released 2007-01-21
512 ! docs/enduser-youtube.html updated according to new functionality
513 - YouTube IDs can have underscores and dashes
515 1.4.0, released 2007-01-21
516 ! Implemented list-style-image, URIs now allowed in list-style
517 ! Implemented background-image, background-repeat, background-attachment
518   and background-position CSS properties. Shorthand property background
519   supports all of these properties.
520 ! Configuration documentation looks nicer
521 ! Added %Core.EscapeNonASCIICharacters to workaround loss of Unicode
522   characters while %Core.Encoding is set to a non-UTF-8 encoding.
523 ! Support for configuration directive aliases added
524 ! Config object can now be instantiated from ini files
525 ! YouTube preservation code added to the core, with two lines of code
526   you can add it as a filter to your code. See smoketests/preserveYouTube.php
527   for sample code.
528 ! Moved SLOW to docs/enduser-slow.html and added code examples
529 - Replaced version check with functionality check for DOM (thanks Stephen
530   Khoo)
531 . Added smoketest 'all.php', which loads all other smoketests via frames
532 . Implemented AttrDef_CSSURI for url(http://google.com) style declarations
533 . Added convenient single test selector form on test runner
535 1.3.2, released 2006-12-25
536 ! HTMLPurifier object now accepts configuration arrays, no need to manually
537   instantiate a configuration object
538 ! Context object now accessible to outside
539 ! Added enduser-youtube.html, explains how to embed YouTube videos. See
540   also corresponding smoketest preserveYouTube.php.
541 ! Added purifyArray(), which takes a list of HTML and purifies it all
542 ! Added static member variable $version to HTML Purifier with PHP-compatible
543   version number string.
544 - Fixed fatal error thrown by upper-cased language attributes
545 - printDefinition.php: added labels, added better clarification
546 . HTMLPurifier_Config::create() added, takes mixed variable and converts into
547   a HTMLPurifier_Config object.
549 1.3.1, released 2006-12-06
550 ! Added HTMLPurifier.func.php stub for a convenient function to call the library
551 - Fixed bug in RemoveInvalidImg code that caused all images to be dropped
552   (thanks to .mario for reporting this)
553 . Standardized all attribute handling variables to attr, made it plural
555 1.3.0, released 2006-11-26
556 # Invalid images are now removed, rather than replaced with a dud
557   <img src="" alt="Invalid image" />. Previous behavior can be restored
558   with new directive %Core.RemoveInvalidImg set to false.
559 ! (X)HTML Strict now supported
560   + Transparently handles inline elements in block context (blockquote)
561 ! Added GET method to demo for easier validation, added 50kb max input size
562 ! New directive %HTML.BlockWrapper, for block-ifying inline elements
563 ! New directive %HTML.Parent, allows you to only allow inline content
564 ! New directives %HTML.AllowedElements and %HTML.AllowedAttributes to let
565   users narrow the set of allowed tags
566 ! <li value="4"> and <ul start="2"> now allowed in loose mode
567 ! New directives %URI.DisableExternalResources and %URI.DisableResources
568 ! New directive %Attr.DisableURI, which eliminates all hyperlinking
569 ! New directive %URI.Munge, munges URI so you can use some sort of redirector
570   service to avoid PageRank leaks or warn users that they are exiting your site.
571 ! Added spiffy new smoketest printDefinition.php, which lets you twiddle with
572   the configuration settings and see how the internal rules are affected.
573 ! New directive %URI.HostBlacklist for blocking links to bad hosts.
574   xssAttacks.php smoketest updated accordingly.
575 - Added missing type to ChildDef_Chameleon
576 - Remove Tidy option from demo if there is not Tidy available
577 . ChildDef_Required guards against empty tags
578 . Lookup table HTMLDefinition->info_flow_elements added
579 . Added peace-of-mind variable initialization to Strategy_FixNesting
580 . Added HTMLPurifier->info_parent_def, parent child processing made special
581 . Added internal documents briefly summarizing future progression of HTML
582 . HTMLPurifier_Config->getBatch($namespace) added
583 . More lenient casting to bool from string in HTMLPurifier_ConfigSchema
584 . Refactored ChildDef classes into their own files
586 1.2.0, released 2006-11-19
587 # ID attributes now disabled by default. New directives:
588   + %HTML.EnableAttrID - restores old behavior by allowing IDs
589   + %Attr.IDPrefix - %Attr.IDBlacklist alternative that munges all user IDs
590     so that they don't collide with your IDs
591   + %Attr.IDPrefixLocal - Same as above, but for when there are multiple
592     instances of user content on the page
593   + Profuse documentation on how to use these available in docs/enduser-id.txt
594 ! Added MODx plugin <http://modxcms.com/forums/index.php/topic,6604.0.html>
595 ! Added percent encoding normalization
596 ! XSS attacks smoketest given facelift
597 ! Configuration documentation now has table of contents
598 ! Added %URI.DisableExternal, which prevents links to external websites.  You
599   can also use %URI.Host to permit absolute linking to subdomains
600 ! Non-accessible resources (ex. mailto) blocked from embedded URIs (img src)
601 - Type variable in HTMLDefinition was not being set properly, fixed
602 - Documentation updated
603   + TODO added request Phalanger
604   + TODO added request Native compression
605   + TODO added request Remove redundant tags
606   + TODO added possible plaintext formatter for HTML Purifier documentation
607   + Updated ConfigDoc TODO
608   + Improved inline comments in AttrDef/Class.php, AttrDef/CSS.php
609     and AttrDef/Host.php
610   + Revamped documentation into HTML, along with misc updates
611 - HTMLPurifier_Context doesn't throw a variable reference error if you attempt
612   to retrieve a non-existent variable
613 . Switched to purify()-wide Context object registry
614 . Refactored unit tests to minimize duplication
615 . XSS attack sheet updated
616 . configdoc.xml now has xml:space attached to default value nodes
617 . Allow configuration directives to permit null values
618 . Cleaned up test-cases to remove unnecessary swallowErrors()
620 1.1.2, released 2006-09-30
621 ! Add HTMLPurifier.auto.php stub file that configures include_path
622 - Documentation updated
623   + INSTALL document rewritten
624   + TODO added semi-lossy conversion
625   + API Doxygen docs' file exclusions updated
626   + Added notes on HTML versus XML attribute whitespace handling
627   + Noted that HTMLPurifier_ChildDef_Custom isn't being used
628   + Noted that config object's definitions are cached versions
629 - Fixed lack of attribute parsing in HTMLPurifier_Lexer_PEARSax3
630 - ftp:// URIs now have their typecodes checked
631 - Hooked up HTMLPurifier_ChildDef_Custom's unit tests (they weren't being run)
632 . Line endings standardized throughout project (svn:eol-style standardized)
633 . Refactored parseData() to general Lexer class
634 . Tester named "HTML Purifier" not "HTMLPurifier"
636 1.1.1, released 2006-09-24
637 ! Configuration option to optionally Tidy up output for indentation to make up
638   for dropped whitespace by DOMLex (pretty-printing for the entire application
639   should be done by a page-wide Tidy)
640 - Various documentation updates
641 - Fixed parse error in configuration documentation script
642 - Fixed fatal error in benchmark scripts, slightly augmented
643 - As far as possible, whitespace is preserved in-between table children
644 - Sample test-settings.php file included
646 1.1.0, released 2006-09-16
647 ! Directive documentation generation using XSLT
648 ! XHTML can now be turned off, output becomes <br>
649 - Made URI validator more forgiving: will ignore leading and trailing
650   quotes, apostrophes and less than or greater than signs.
651 - Enforce alphanumeric namespace and directive names for configuration.
652 - Table child definition made more flexible, will fix up poorly ordered elements
653 . Renamed ConfigDef to ConfigSchema
655 1.0.1, released 2006-09-04
656 - Fixed slight bug in DOMLex attribute parsing
657 - Fixed rejection of case-insensitive configuration values when there is a
658   set of allowed values.  This manifested in %Core.Encoding.
659 - Fixed rejection of inline style declarations that had lots of extra
660   space in them.  This manifested in TinyMCE.
662 1.0.0, released 2006-09-01
663 ! Shorthand CSS properties implemented: font, border, background, list-style
664 ! Basic color keywords translated into hexadecimal values
665 ! Table CSS properties implemented
666 ! Support for charsets other than UTF-8 (defined by iconv)
667 ! Malformed UTF-8 and non-SGML character detection and cleaning implemented
668 - Fixed broken numeric entity conversion
669 - API documentation completed
670 . (HTML|CSS)Definition de-singleton-ized
672 1.0.0beta, released 2006-08-16
673 ! First public release, most functionality implemented. Notable omissions are:
674   + Shorthand CSS properties
675   + Table CSS properties
676   + Deprecated attribute transformations