NEWS 68 KB

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