0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-11-09 23:28:42 +00:00
htmlpurifier/library/HTMLPurifier/ChildDef
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
..
Chameleon.php Rewrite FixNesting implementation to be tree-based. 2013-10-20 22:37:01 -07:00
Custom.php Replace curly braces with square brackets in string offsets (#224) 2019-07-30 22:50:43 -04:00
Empty.php Rewrite FixNesting implementation to be tree-based. 2013-10-20 22:37:01 -07:00
List.php Fix some PHP 8.2 deprecations (#319) 2022-06-10 16:30:01 -04:00
Optional.php Rewrite FixNesting implementation to be tree-based. 2013-10-20 22:37:01 -07:00
Required.php Rewrite FixNesting implementation to be tree-based. 2013-10-20 22:37:01 -07:00
StrictBlockquote.php Rewrite FixNesting implementation to be tree-based. 2013-10-20 22:37:01 -07:00
Table.php Fixed Issue #264: <thead> element removed from <table> if there are no <tbody> or <tr> elements (#283) 2021-01-26 11:11:50 -05:00