Skip to content

Releases: xemlock/htmlpurifier-html5

v0.1.11

07 Aug 20:00
Compare
Choose a tag to compare

Notable changes since last release:

  • Implemented spec compliant <address>, <header>, <footer> (#39)
  • Implemented spec compliant <form> and <blockquote> (#46)
  • Added spec compliant datetime attribute to <time>, <ins>, <del> (#35)
  • Defined <article>, <aside>, <nav>, <section> as Sectioning content
  • Defined <hgroup> as Heading content
  • Empty <figure>s are no longer removed
  • Made allowfullscreen attribute of <iframe> guarded by %HTML.IframeAllowFullscreen setting (#38)
  • Dropped obsolete elements: <basefont>, <center>, <dir>, <font>, <menu>, <strike>
  • Dropped obsolete <iframe> attributes: scrolling, frameborder, longdesc, marginheight, marginwidth

Changes to internal APIs:

  • Removed deprecated class HTMLPurifier_AttrDef_Regexp
  • Removed deprecated class HTMLPurifier_AttrTransform_Progress
  • Removed deprecated HTMLPurifier_ChildDef_ classes: Details, Figure, Media, Picture
  • Removed helper class HTMLPurifier_ChildDef_HTML5
  • Removed deprecated method HTMLPurifier_HTML5Definition::setup()

v0.1.10

26 Apr 09:05
Compare
Choose a tag to compare

This is a fix release for a bug introduced in v0.1.9 which removed <a> from inline elements (#31).

v0.1.9

17 Apr 16:50
Compare
Choose a tag to compare

DO NOT INSTALL THIS RELEASE!!! It contains a bug in <a> element definition, preventing it from being treated as an inline element. Use v0.1.10 instead.


Notable changes since last release:

  • HTML5 doctype and modularization
  • Added <bdi> and <dialog>
  • Added datetime attribute to <del> and <ins>
  • Added async and charset attributes to <script> (issue #26)
  • Added auto value to dir global attribute
  • Added validation for rel attribute of <a> element

The following classes were marked as deprecated:

  • HTMLPurifier_AttrDef_Regexp as unused
  • HTMLPurifier_AttrTransform_Progress, use HTMLPurifier_AttrTransform_HTML5_Progress instead
  • HTMLPurifier_ChildDef_Details, use HTMLPurifier_ChildDef_HTML5_Details instead
  • HTMLPurifier_ChildDef_Figure, use HTMLPurifier_ChildDef_HTML5_Figure instead
  • HTMLPurifier_ChildDef_Media, use HTMLPurifier_ChildDef_HTML5_Media instead
  • HTMLPurifier_ChildDef_Picture, use HTMLPurifier_ChildDef_HTML5_Picture instead
  • HTMLPurifier_ChildDef_Progress, use HTMLPurifier_ChildDef_HTML5_Progress instead

v0.1.8

14 Aug 21:31
670fc5c
Compare
Choose a tag to compare

Notable changes since last release:

  • Add <progress> element
  • Add <ruby> element

v0.1.7

08 Jun 07:23
b4b35e5
Compare
Choose a tag to compare

Notable changes since last release:

  • Fix content model definition of <figure> and <details> elements
  • Fix content category of <audio>, <video> and <picture> elements (#17)
  • Make HTML5Config::inherit() return an instance of HTML5Config (#16)

v0.1.6

04 Mar 00:52
a823948
Compare
Choose a tag to compare

Changes since last release:

  • Add sizes attribute to img element
  • Prevent removal of HTML5 definitions when setting HTML.* keys

v0.1.5

12 Feb 08:05
ab53dd3
Compare
Choose a tag to compare

Changes since last release:

  • Add support for details, picture, and track elements
  • Add support for HTML5 attributes to a element
  • Allow flow content inside a element
  • Fix content sanitization in audio and video elements
  • Fix definition of source element

v0.1.4

08 Feb 09:52
Compare
Choose a tag to compare

Changes since last release:

  • Update readme
  • Make HTML5Config::create() default arguments the same as Config::create()

Important: previous releases allowed HTMLPurifier_HTML5Config::create() to be called without any arguments. In this release the first argument is required, just as it is in HTMLPurifier_Config::create(). If it's not provided a warning will be issued, but apart from that the library will work as before.

v0.1.3

06 Feb 09:43
ab7dc23
Compare
Choose a tag to compare

Changes since last release:

  • Don't auto-finalize config upon creation

v0.1.2

14 Aug 13:09
Compare
Choose a tag to compare

Changes since last release:

  • fix boolean attribute validation
  • simplify definitions for audio|video|figure elements
  • use config schema singleton instance instead of creating one, if none was provided