0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-12-22 16:31:53 +00:00
htmlpurifier/library/HTMLPurifier/AttrTransform
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
..
Background.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
BdoDir.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
BgColor.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
BoolToCSS.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
Border.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
EnumToCSS.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
ImgRequired.php Don't truncate alts. 2015-09-29 15:36:53 -07:00
ImgSpace.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
Input.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
Lang.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
Length.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
Name.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
NameSync.php Fix some PHP 8.2 deprecations (#319) 2022-06-10 16:30:01 -04:00
Nofollow.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
SafeEmbed.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
SafeObject.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
SafeParam.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
ScriptRequired.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
TargetBlank.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
TargetNoopener.php Refactor HTML.Noopener to HTML.TargetNoopener so that it behaves like HTML.TargetNoreferrer and is active by default if a target is set 2017-02-03 16:54:51 -08:00
TargetNoreferrer.php Add %HTML.TargetNoreferrer, which adds rel="noreferrer" when target attribute is set 2016-06-30 21:53:43 -04:00
Textarea.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00