| 1 |
# Release History |
| 2 |
|
| 3 |
## RemexHtml 4.1.2 (2025-04-23) |
| 4 |
* Turn off "lazy attribute" creation in Tokenizer by default in order |
| 5 |
to eliminate a memory hotspot. Add 'lazyAttributes' option to |
| 6 |
Tokenizer which is false by default. In use cases where most |
| 7 |
attributes are not queried, performance can be improved at the cost |
| 8 |
of additional memory usage by passing `"lazyAttributes"=>true` in |
| 9 |
the options provided to the Tokenizer. |
| 10 |
* build: Update phpunit/phpunit to 9.6.21 (libraryupgrader) |
| 11 |
* build: Updating mediawiki/mediawiki-phan-config to 0.15.1 (libraryupgrader) |
| 12 |
* build: Updating mediawiki/mediawiki-codesniffer to 46.0.0 (libraryupgrader) |
| 13 |
* Misc code style improvements (replace call_user_func, add missing |
| 14 |
@covers annotations, use const, use instanceof, add type |
| 15 |
declarations for class properties and some functions, add missing |
| 16 |
documentation) |
| 17 |
|
| 18 |
## RemexHtml 4.1.1 (2024-11-05) |
| 19 |
* build: Updating composer dependencies (libraryupgrader) |
| 20 |
* build: Updating mediawiki/mediawiki-codesniffer to 45.0.0 (libraryupgrader) |
| 21 |
* build: Updating mediawiki/mediawiki-phan-config to 0.14.0 (libraryupgrader) |
| 22 |
* Bump version after release (C. Scott Ananian) |
| 23 |
|
| 24 |
## RemexHtml 4.1.0 (2024-03-16) |
| 25 |
* In DOMBuilder, make ::insertNode() protected to allow clients to |
| 26 |
support the special HTML5 insertion logic for <template> nodes. |
| 27 |
* Workaround PHP bug which limits the set of characters allowed for |
| 28 |
tag and attribute names even more than the XML spec does. |
| 29 |
* Refine exception types thrown in PropGuard and TreeBuilder. |
| 30 |
* build: Updating mediawiki/mediawiki-codesniffer to 43.0.0. |
| 31 |
* build: Update PHPUnit to 9.6.16. |
| 32 |
|
| 33 |
## RemexHtml 4.0.1 (2023-08-29) |
| 34 |
* build: Drop claimed support for utfnormal 1.x and 2.x, we require PHP 7.4 (James D. Forrester) |
| 35 |
* Add support for wikimedia/utfnormal 4.0.0 (Derick Alangi) |
| 36 |
* build: Switch phan to special library mode (James D. Forrester) |
| 37 |
* build: Cleanup of PHPUnit 8.x compatibility (Umherirrender) |
| 38 |
* build: Updating mediawiki/mediawiki-codesniffer to 41.0.0 (libraryupgrader) |
| 39 |
|
| 40 |
## RemexHtml 4.0.0 (2023-02-24) |
| 41 |
* Drop PHP 7.2 and PHP 7.3 support. |
| 42 |
* Update PHPUnit dependency. |
| 43 |
|
| 44 |
## RemexHtml 3.0.3 (2022-12-21) |
| 45 |
* Workaround PHP bug which decodes entities when setting attribute values. |
| 46 |
(T324408, https://github.com/php/php-src/pull/10132 ) |
| 47 |
|
| 48 |
## RemexHtml 3.0.2 (2022-06-27) |
| 49 |
* Specify return types to make PHP 8.1 happy. |
| 50 |
|
| 51 |
## RemexHtml 3.0.1 (2021-11-19) |
| 52 |
* Fix duplicate sourceLength output for <tr></table>. |
| 53 |
* In DOMBuilder, catch invalid character errors from createAttribute. |
| 54 |
|
| 55 |
## RemexHtml 3.0.0 (2021-10-25) |
| 56 |
* Removed the RemexHtml\ namespace aliases. |
| 57 |
* Added Attributes::clone() |
| 58 |
* Added Dispatcher::flushTableText(). |
| 59 |
|
| 60 |
## RemexHtml 2.3.2 (2021-08-07) |
| 61 |
* Changed package namespace from RemexHtml to Wikimedia\RemexHtml to match |
| 62 |
package name. PHP's `class_alias` has been used so that existing code |
| 63 |
using the old namespace will continue to work, but this is now deprecated; |
| 64 |
it is expected the next major release of RemexHtml will remove the aliases. |
| 65 |
* Fix handling of <body> tag in "after head" state that would incorrectly |
| 66 |
result in a parse error being raised. |
| 67 |
* Made DOMBuilder::createNode protected (rather than private) so that |
| 68 |
standards-compliant DOM implementations can override it. |
| 69 |
|
| 70 |
## RemexHtml 2.3.1 (2021-04-20) |
| 71 |
* Don't pass null arguments to DOMImplementation::createDocument(): nulls |
| 72 |
are technically allowed and converted to the empty string, but this is |
| 73 |
deprecated legacy behavior. |
| 74 |
|
| 75 |
## RemexHtml 2.3.0 (2021-02-05) |
| 76 |
* Allow use of third-party DOM implementations (like wikimedia/dodo) |
| 77 |
via the new `domImplementation` parameter to DOMBuilder. |
| 78 |
|
| 79 |
## RemexHtml 2.2.2 (2021-01-30) |
| 80 |
* Support wikimedia/utfnormal ^3.0.1 |
| 81 |
|
| 82 |
## RemexHtml 2.2.1 (2021-01-11) |
| 83 |
* Various minor changes for PHP 8.0 support. |
| 84 |
* Remove dead code about old phpunit version |
| 85 |
|
| 86 |
## RemexHtml 2.2.0 (2020-04-29) |
| 87 |
* Update dependencies. |
| 88 |
* Fix warnings emitted by PHP 7.4. |
| 89 |
* Bug fix in TreeBuilder\ForeignAttributes::offsetGet(). |
| 90 |
* Drop PHP 7.0/7.1 and HHVM support; require PHPUnit 8. |
| 91 |
|
| 92 |
## RemexHtml 2.1.0 (2019-09-16) |
| 93 |
* Call the non-standard \DOMElement::setIdAttribute() method by default. |
| 94 |
* Add scriptingFlag option to Tokenizer, and make it true by default. |
| 95 |
* Attributes bug fixes. |
| 96 |
* Added RelayTreeHandler and RelayTokenHandler for subclassing convenience. |
| 97 |
* Normalize text nodes during tree building, to match HTML parsing spec. |
| 98 |
|
| 99 |
## RemexHtml 2.0.3 (2019-05-10) |
| 100 |
* Don't decode char refs if ignoreCharRefs is set, even if they are simple. |
| 101 |
(This fixes a regression introduced in 2.0.2.) |
| 102 |
* Performance improvements to character entity decoding and tokenizer |
| 103 |
preprocessing. |
| 104 |
|
| 105 |
## RemexHtml 2.0.2 (2019-03-13) |
| 106 |
* Performance improvements to tokenization and tree building. |
| 107 |
* Provide an option to suppress namespace for HTML elements, working around |
| 108 |
a performance bug in PHP's dom_reconcile_ns (T217708). |
| 109 |
|
| 110 |
## RemexHtml 2.0.1 (2018-10-15) |
| 111 |
* Don't double-decode HTML entities when running on PHP (not HHVM) (T207088). |
| 112 |
|
| 113 |
## RemexHtml 2.0.0 (2018-08-13) |
| 114 |
* Drop support for PHP < 7.0. |
| 115 |
* Remove descendant nodes when we get an endTag() event (T200827). |
| 116 |
* Improved tracing. |
| 117 |
* Added NullTreeHandler and NullTokenHandler. |
| 118 |
|
| 119 |
## RemexHtml 1.0.3 (2018-02-28) |
| 120 |
* Drop support for PHP < 5.5. |
| 121 |
|
| 122 |
## RemexHtml 1.0.2 (2018-01-01) |
| 123 |
* Fix linked list manipulation in CachedScopeStack (T183379). |
| 124 |
|
| 125 |
## RemexHtml 1.0.1 (2017-03-14) |
| 126 |
* Fix missing breaks in switch statements. |
| 127 |
|
| 128 |
## RemexHtml 1.0.0 (2017-02-24) |
| 129 |
* Initial release. |