0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-11-10 15:48:42 +00:00
htmlpurifier/library/HTMLPurifier/Injector
Tim Düsterhus 1db36fb09d
Fix some PHP 8.2 deprecations (#319)
* 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.
2022-06-10 16:30:01 -04:00
..
AutoParagraph.php Use a Zipper to process MakeWellFormed, removing quadratic behavior. 2013-10-13 13:21:02 -07:00
DisplayLinkURI.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
Linkify.php Fix "Parameter must be an array or an object that implements Countable" (#285) 2021-02-27 20:42:20 -05:00
PurifierLinkify.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
RemoveEmpty.php Hack to fix #85 2016-07-01 15:52:09 -04:00
RemoveSpansWithoutAttributes.php Fix some PHP 8.2 deprecations (#319) 2022-06-10 16:30:01 -04:00
SafeObject.php Fix #57, make flashvars check (and others) case-insensitive. 2016-03-27 15:56:30 -07:00