* Bugfix UnitConverter expects float got string (strict types enabled)
* Bugfix for latest bugfix with huge numbers
* Bugfix for german locale
* Use number_format instead of str_replace(sprintf())
This was found during the analysis for https://wiki.php.net/rfc/saner-inc-dec-operators
I don't know what is the minimal version targeted, so the line which defines ``$c`` may need to be changes to use ``array_merge()``
* fix: CSSTidy ImportantComments not handled properly
Signed-off-by: Francis Lévesque <wolfrank2164@gmail.com>
* fix: CSSTidy ImportantComments not handled properly -> remove comments
Signed-off-by: Francis Lévesque <wolfrank2164@gmail.com>
Co-authored-by: Edward Z. Yang <ezyang@meta.com>
* CSS: add support for all text-decoration related properties
* updated arrays to use short syntex
Co-authored-by: Raheel Hasan <raheel.hasan@luciditysoftware.com.au>
* Add semantic release
* fix typo
* split from matrix
* remove only on push
* remove npm plugin
* write changelog to NEWS
* list assets to include in git commit
* fix update-for-release
* lint pr title
* split release into separate workflow that runs manually
* revert ci.yml changes
* remove references to WHATSNEW
* Fix#322 - PHP 8.1 deprecation notice in HostBlacklist URIFilter (#323)
* Replace 8.1-deprecated utf8_ funcs with mbstring (#326)
* Treat PHP version numbers as strings in GitHub Actions (#327)
YAML will try to interpret numeric values as numbers, leading to `8.0` being
interpreted as `8` instead of `'8.0'`.
This doesn't result in a functional change, but cleans up the output of the
jobs a little (e.g. in the title line).
* Update to `actions/checkout@v3` (#328)
This does not introduce any functional difference and is intended as a
future-proofing change.
see https://github.com/actions/checkout/releases/tag/v3.0.0
* Fix test selection logic in tests/test_files.php (#329)
Selecting the `fstools` tests also executed the `htmlt` tests.
* Fix some more PHP 8.2 deprecations (#330)
* Define HTMLPurifier_AttrTransform_SafeParam::$wmode
This fixes a PHP 8.2 deprecation.
* Define HTMLPurifier_DefinitionCache_DecoratorHarness::$cache
This fixes a PHP 8.2 deprecation.
* Define HTMLPurifier_DefinitionCache_DecoratorHarness::$mock
This fixes a PHP 8.2 deprecation.
* Define HTMLPurifier_DefinitionCache_DecoratorHarness::$def
This fixes a PHP 8.2 deprecation.
* Define HTMLPurifier_EntityParserTest::$_entity_lookup
This fixes a PHP 8.2 deprecation.
* Increase minimum requirement to PHP 5.6 (#331)
* Add contenteditable attribute definition (#332)
* Add contenteditable attribute definition
* gate behind html.trusted
* use enum
* Fix creation of dynamic property (#333)
* Fix creation of dynamic property (#337)
* Add PHP 8.2 to CI (#335)
* Add PHP 8.2 to CI
see ezyang/htmlpurifier#334
* Add PHP 8.2 to composer.json
* Fix contenteditable attribute definition (#336)
* Run CSSTidy tests on CI (#338)
* Run CSSTidy tests on CI
* update dirname
* use compopser instead of git clone
* use composer
* use test-settings.sample.php
* enable ext-intl
* disable Net_IDNA2
* Release 4.15.0
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Co-authored-by: John Flatness <john@zerocrates.org>
Co-authored-by: Tim Düsterhus <duesterhus@woltlab.com>
Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>
Co-authored-by: Edward Z. Yang <ezyang@mit.edu>
* Run CSSTidy tests on CI
* update dirname
* use compopser instead of git clone
* use composer
* use test-settings.sample.php
* enable ext-intl
* disable Net_IDNA2
* Define HTMLPurifier_AttrTransform_SafeParam::$wmode
This fixes a PHP 8.2 deprecation.
* Define HTMLPurifier_DefinitionCache_DecoratorHarness::$cache
This fixes a PHP 8.2 deprecation.
* Define HTMLPurifier_DefinitionCache_DecoratorHarness::$mock
This fixes a PHP 8.2 deprecation.
* Define HTMLPurifier_DefinitionCache_DecoratorHarness::$def
This fixes a PHP 8.2 deprecation.
* Define HTMLPurifier_EntityParserTest::$_entity_lookup
This fixes a PHP 8.2 deprecation.
YAML will try to interpret numeric values as numbers, leading to `8.0` being
interpreted as `8` instead of `'8.0'`.
This doesn't result in a functional change, but cleans up the output of the
jobs a little (e.g. in the title line).
* Define HTMLPurifier_Lexer::$_entity_parser property
This fixes a PHP 8.2 deprecation.
* Define HTMLPurifier_URIFilterHarness::$filter property
This fixes a PHP 8.2 deprecation.
* Define HTMLPurifier_AttrTransform_NameSync::$idDef property
This fixes a PHP 8.2 deprecation.
* Define HTMLPurifier_AttrTransform_NameSyncTest::$accumulator property
This fixes a PHP 8.2 deprecation.
* Define HTMLPurifier_AttrValidator_ErrorsTest::$language property
This fixes a PHP 8.2 deprecation.
* Define HTMLPurifier_ChildDef_List::$whitespace property
This fixes a PHP 8.2 deprecation.
* Do not modify incoming tokens in RemoveSpansWithoutAttributes
Previously the undefined property `->markForDeletion` was added to the incoming
tokens. This causes a deprecation in PHP 8.2. Fix this by storing to-be-deleted
tokens inside SplObjectStorage. In PHP 8 a WeakMap would be preferable, as that
prevents leaks if `handleEnd` is never called for the token.
* Remove unnecessary reference assigment
Proposed code is PHP5 and PHP7 compatible. PHP5 interpreted `$e->$type[$attr]` as `$e->{$type[$attr]}`, but the expected behavior based on workaround is consistent with PHP7 interpretation: `($e->$type)[$attr]`. By using curly braces `{$e->$type}[$attr]` there is a forced interpretation order working for both versions.
Details can be found on https://www.php.net/manual/en/migration70.incompatible.php (section "Changes to the handling of indirect variables, properties, and methods")
* Fix syntax
Use correct syntax for indirect variable evaluation order change.