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