mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-15 12:00:51 +00:00
91e1bb15cc
It adds white-space between block tags and strips invisible tags. It may be slightly slower (it takes HTML as input rather than DOM, so we need to serialize the HTML first and then call it, rather than only find and concatenate text nodes), but the difference is negligible, and it seems better to use this method than to try to re-implement it. Test runtime went from ~9.0s to ~9.5s locally, when testing using: php tests/phpunit/phpunit.php \ extensions/DiscussionTools/tests/phpunit/ThreadItemTest.php \ --filter getText Bug: T219138 Change-Id: I0cb89ebd2160e1ef499b78573c6688f493a4c42f |
||
---|---|---|
.. | ||
Actions | ||
Hooks | ||
Notifications | ||
ApiDiscussionToolsCompare.php | ||
ApiDiscussionToolsEdit.php | ||
ApiDiscussionToolsGetSubscriptions.php | ||
ApiDiscussionToolsPageInfo.php | ||
ApiDiscussionToolsSubscribe.php | ||
ApiDiscussionToolsTrait.php | ||
CommentFormatter.php | ||
CommentItem.php | ||
CommentModifier.php | ||
CommentParser.php | ||
CommentUtils.php | ||
Data.php | ||
HeadingItem.php | ||
ImmutableRange.php | ||
NodeFilter.php | ||
ServiceWiring.php | ||
SpecialTopicSubscriptions.php | ||
SubscriptionItem.php | ||
SubscriptionStore.php | ||
ThreadItem.php | ||
TopicSubscriptionsPager.php | ||
TreeWalker.php |