Skip to content

Releases: Icinga/ipl-html

ipl-html v0.10.2

21 Apr 14:21
v0.10.2

Choose a tag to compare

All included changes can be found on the milestone.

Fixes

  • Form element name escaping has been reverted and the method ipl\Html\Form::escapeReservedChars() deprecated #196

ipl-html v0.10.1

14 Apr 12:01
v0.10.1
ae2dce6

Choose a tag to compare

All included changes can be found on the milestone.

Fixes

  • Preserve checked state of disabled checkbox on submit #195
  • Add yieldElements() to fix partial validation for nested form elements #191

ipl-html v0.10.0

14 Apr 12:01
v0.10.0
ae700e1

Choose a tag to compare

All included changes can be found on the milestone.

Breaking Changes

  • Raise minimum required PHP version to 8.2

Changes

  • Add support for PHP 8.5 #184
  • Adapt to ipl-stdlib strict typing #187

Fixes

  • DescriptionDecorator: Do not override existing aria-describedby #188

ipl-html v0.9.1

27 Nov 15:21
v0.9.1

Choose a tag to compare

This fixes a BC in v0.9.0 due to form elements not accepting null as name #182

ipl-html v0.9.0

27 Nov 14:32
v0.9.0
4ab3fb1

Choose a tag to compare

Features

  • Form decoration #168
  • Revise form element decoration #146

Changes

  • Introduce MutableHtml interface #152
  • Introduce HtmlElementInterface #154
  • Attribute: Introduce static method sanitizeId #171
  • TextElement: Add support for placeholder attribute #148
  • Form: Trigger ON_REQUEST only in case it's not been sent #153
  • Form data and PHP $_POST data mismatch in case of special characters in form element names #149
    • This introduced a BC which is being addressed in version 0.9.1

Deprecations

  • Deprecate everything related to the old form element decorators #170

Fixes

  • FieldsetElement not validated during partial validation #133
  • HtmlDocument: Attempt to resolve multiple wrap references correctly #162

ipl-html v0.8.2

22 May 09:24
v0.8.2

Choose a tag to compare

Changes

  • Checkboxes that are not checked, are not validated anymore #144
    • This is in line with other elements, as they're not validated as well if they have no value

Fixes

  • Checkboxes that are required are now properly validated on the server side #143
  • Required text inputs do not pass validation anymore, if only white-space has been entered #141
  • The PasswordElement now does not render the dummy password unless the form has been submitted or automatically populated #142

ipl-html v0.8.1

15 Jul 07:30
v0.8.1

Choose a tag to compare

Fixes

  • Forms now also catch fatal errors #139
  • select[multiple] inputs which are part of a fieldset are now correctly transmitted #136

ipl-html v0.8.0

21 Sep 08:51
v0.8.0

Choose a tag to compare

Changes

  • Support for PHP 8.2
  • Added new method HtmlDocument::insertAfter() #122
  • Added new method HtmlDocument::insertBefore() #122
  • Added new event HtmlDocument::ON_ASSEMBLED #122
  • FormElements::ensureDefaultElementLoaderRegistered() and FormElements::ensureDefaultElementDecoratorLoaderRegistered() can now be overridden more easily #124

Fixes

  • FormElements::setDefaultElementDecorator(string) now correctly instantiates the decorator #124
  • FileElement properly preserves uploads across requests again, since it broke with the latest update #128

ipl-html v0.7.0

22 Mar 08:56
v0.7.0

Choose a tag to compare

Breaking Changes

  • ipl\FormElement\SubFormElement is replaced by ipl\FormElement\FieldsetElement #74
  • ipl\FormElement\BaseFormElement::addDefaultValidators() is now protected #90
  • Form elements are not validated anymore if they have no value #121

Changes

  • Added ipl\FormElement\FileElement #66
  • Added ipl\FormElement\RadioElement #68
  • Added ipl\FormElement\ColorElement #75
  • Form elements can now initialize themselves in a new method init() #95
  • Attribute instances now allow the customization of the value separator #106
  • ipl\FormElement\SelectElement got enhanced quite a bit (take a look at the PRs for details) #70 #88
  • The checked and unchecked value of ipl\FormElement\CheckboxElement can now be adjusted by attributes #69

Fixes

  • Attributes are now cloned correctly #110
  • Wrapper loops are now aborted as late as possible #92 #93
  • ipl\FormElement\SelectElement::setOptions(array) does not add options anymore #67
  • ipl\FormElement\SubmitButtonElement::hasBeenPressed() does not always return true anymore #116, #119

ipl-html v0.6.0

15 Jun 08:18
v0.6.0

Choose a tag to compare

Breaking Changes

  • Dropped support for PHP 7.0 and 7.1 #59

Changes

  • Support for PHP 8.1 #59

Fixes

  • Attributes::merge() does not ignore callbacks anymore #63