Fix typos in AttrDef/Lang.php involving lowercasing uppercased language strings.
[htmlpurifier.git] / NEWS
blob57ce8ec8e077b4c59416077e18232a41577f4a7d
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 1.4.0, unknown release date (around Christmas, hopefully)
13 (major feature release)
15 1.3.2, unknown release date, may be dropped
16 (security/bugfix/minor feature release)
17 ! HTMLPurifier object now accepts configuration arrays, no need to manually
18   instantiate a configuration object
19 ! Context object now accessible to outside
20 ! Added enduser-youtube.html, explains how to embed YouTube videos. See
21   also corresponding smoketest preserveYouTube.php.
22 ! Added purifyArray(), which takes a list of HTML and purifies it all
23 - Fixed fatal error thrown by upper-cased language attributes
24 - printDefinition.php: added labels, added better clarification
25 . HTMLPurifier_Config::create() added, takes mixed variable and converts into
26   a HTMLPurifier_Config object.
28 1.3.1, released 2006-12-06
29 ! Added HTMLPurifier.func.php stub for a convenient function to call the library
30 - Fixed bug in RemoveInvalidImg code that caused all images to be dropped
31   (thanks to .mario for reporting this)
32 . Standardized all attribute handling variables to attr, made it plural
34 1.3.0, released 2006-11-26
35 # Invalid images are now removed, rather than replaced with a dud
36   <img src="" alt="Invalid image" />. Previous behavior can be restored
37   with new directive %Core.RemoveInvalidImg set to false.
38 ! (X)HTML Strict now supported
39   + Transparently handles inline elements in block context (blockquote)
40 ! Added GET method to demo for easier validation, added 50kb max input size
41 ! New directive %HTML.BlockWrapper, for block-ifying inline elements
42 ! New directive %HTML.Parent, allows you to only allow inline content
43 ! New directives %HTML.AllowedElements and %HTML.AllowedAttributes to let
44   users narrow the set of allowed tags
45 ! <li value="4"> and <ul start="2"> now allowed in loose mode
46 ! New directives %URI.DisableExternalResources and %URI.DisableResources
47 ! New directive %Attr.DisableURI, which eliminates all hyperlinking
48 ! New directive %URI.Munge, munges URI so you can use some sort of redirector
49   service to avoid PageRank leaks or warn users that they are exiting your site.
50 ! Added spiffy new smoketest printDefinition.php, which lets you twiddle with
51   the configuration settings and see how the internal rules are affected.
52 ! New directive %URI.HostBlacklist for blocking links to bad hosts.
53   xssAttacks.php smoketest updated accordingly.
54 - Added missing type to ChildDef_Chameleon
55 - Remove Tidy option from demo if there is not Tidy available
56 . ChildDef_Required guards against empty tags
57 . Lookup table HTMLDefinition->info_flow_elements added
58 . Added peace-of-mind variable initialization to Strategy_FixNesting
59 . Added HTMLPurifier->info_parent_def, parent child processing made special
60 . Added internal documents briefly summarizing future progression of HTML
61 . HTMLPurifier_Config->getBatch($namespace) added
62 . More lenient casting to bool from string in HTMLPurifier_ConfigSchema
63 . Refactored ChildDef classes into their own files
65 1.2.0, released 2006-11-19
66 # ID attributes now disabled by default. New directives:
67   + %HTML.EnableAttrID - restores old behavior by allowing IDs
68   + %Attr.IDPrefix - %Attr.IDBlacklist alternative that munges all user IDs
69     so that they don't collide with your IDs
70   + %Attr.IDPrefixLocal - Same as above, but for when there are multiple
71     instances of user content on the page
72   + Profuse documentation on how to use these available in docs/enduser-id.txt
73 ! Added MODx plugin <http://modxcms.com/forums/index.php/topic,6604.0.html>
74 ! Added percent encoding normalization
75 ! XSS attacks smoketest given facelift
76 ! Configuration documentation now has table of contents
77 ! Added %URI.DisableExternal, which prevents links to external websites.  You
78   can also use %URI.Host to permit absolute linking to subdomains
79 ! Non-accessible resources (ex. mailto) blocked from embedded URIs (img src)
80 - Type variable in HTMLDefinition was not being set properly, fixed
81 - Documentation updated
82   + TODO added request Phalanger
83   + TODO added request Native compression
84   + TODO added request Remove redundant tags
85   + TODO added possible plaintext formatter for HTML Purifier documentation
86   + Updated ConfigDoc TODO
87   + Improved inline comments in AttrDef/Class.php, AttrDef/CSS.php
88     and AttrDef/Host.php
89   + Revamped documentation into HTML, along with misc updates
90 - HTMLPurifier_Context doesn't throw a variable reference error if you attempt
91   to retrieve a non-existent variable
92 . Switched to purify()-wide Context object registry
93 . Refactored unit tests to minimize duplication
94 . XSS attack sheet updated
95 . configdoc.xml now has xml:space attached to default value nodes
96 . Allow configuration directives to permit null values
97 . Cleaned up test-cases to remove unnecessary swallowErrors()
99 1.1.2, released 2006-09-30
100 ! Add HTMLPurifier.auto.php stub file that configures include_path
101 - Documentation updated
102   + INSTALL document rewritten
103   + TODO added semi-lossy conversion
104   + API Doxygen docs' file exclusions updated
105   + Added notes on HTML versus XML attribute whitespace handling
106   + Noted that HTMLPurifier_ChildDef_Custom isn't being used
107   + Noted that config object's definitions are cached versions
108 - Fixed lack of attribute parsing in HTMLPurifier_Lexer_PEARSax3
109 - ftp:// URIs now have their typecodes checked
110 - Hooked up HTMLPurifier_ChildDef_Custom's unit tests (they weren't being run)
111 . Line endings standardized throughout project (svn:eol-style standardized)
112 . Refactored parseData() to general Lexer class
113 . Tester named "HTML Purifier" not "HTMLPurifier"
115 1.1.1, released 2006-09-24
116 ! Configuration option to optionally Tidy up output for indentation to make up
117   for dropped whitespace by DOMLex (pretty-printing for the entire application
118   should be done by a page-wide Tidy)
119 - Various documentation updates
120 - Fixed parse error in configuration documentation script
121 - Fixed fatal error in benchmark scripts, slightly augmented
122 - As far as possible, whitespace is preserved in-between table children
123 - Sample test-settings.php file included
125 1.1.0, released 2006-09-16
126 ! Directive documentation generation using XSLT
127 ! XHTML can now be turned off, output becomes <br>
128 - Made URI validator more forgiving: will ignore leading and trailing
129   quotes, apostrophes and less than or greater than signs.
130 - Enforce alphanumeric namespace and directive names for configuration.
131 - Table child definition made more flexible, will fix up poorly ordered elements
132 . Renamed ConfigDef to ConfigSchema
134 1.0.1, released 2006-09-04
135 - Fixed slight bug in DOMLex attribute parsing
136 - Fixed rejection of case-insensitive configuration values when there is a
137   set of allowed values.  This manifested in %Core.Encoding.
138 - Fixed rejection of inline style declarations that had lots of extra
139   space in them.  This manifested in TinyMCE.
141 1.0.0, released 2006-09-01
142 ! Shorthand CSS properties implemented: font, border, background, list-style
143 ! Basic color keywords translated into hexadecimal values
144 ! Table CSS properties implemented
145 ! Support for charsets other than UTF-8 (defined by iconv)
146 ! Malformed UTF-8 and non-SGML character detection and cleaning implemented
147 - Fixed broken numeric entity conversion
148 - API documentation completed
149 . (HTML|CSS)Definition de-singleton-ized
151 1.0.0beta, released 2006-08-16
152 ! First public release, most functionality implemented. Notable omissions are:
153   + Shorthand CSS properties
154   + Table CSS properties
155   + Deprecated attribute transformations