mediawiki-extensions-Discus.../includes
Bartosz Dziewoński 8f42c74985 Fix skipping to the end of paragraph, now it considers nested tags
Add yet another tree walking utility: CommentUtils::linearWalk().
Unlike TreeWalker, it allows handling the beginnings and ends of nodes
separately – kind of like parsing a XML token stream, or kind of like
VisualEditor's linear model.

(Add unit tests for this utility. The simple.html test case is copied
from [VisualEditor/VisualEditor]/demos/ve/pages/simple.html.)

Use this utility to stop skipping when we reach either a closing or
opening block node tag. Previously we'd skip over such tags inside
nested "transparent" nodes (like <a>, <del>, or apparently <font>).

Bug: T271385
Change-Id: I201a942eb3a56335e84d94e150ec2c33f8b4f4e0
2021-01-18 18:20:20 +00:00
..
ApiDiscussionTools.php Include 'false' results in 'transcludedfrom' API response 2020-10-22 22:25:35 +02:00
ApiDiscussionToolsEdit.php Catch when no changes are actually saved when posting a comment 2021-01-08 22:39:18 +00:00
CommentFormatter.php Load site config data in CommentFormatter tests 2021-01-08 23:03:33 +00:00
CommentItem.php CommentItem/HeadingItem: Make more constructor args required 2021-01-08 20:45:29 +00:00
CommentModifier.php Ability to add new discussion sections 2021-01-12 20:15:28 +00:00
CommentParser.php Fix skipping to the end of paragraph, now it considers nested tags 2021-01-18 18:20:20 +00:00
CommentUtils.php Fix skipping to the end of paragraph, now it considers nested tags 2021-01-18 18:20:20 +00:00
Data.php build: Updating mediawiki/mediawiki-codesniffer to 32.0.0 2020-10-29 10:53:01 +00:00
HeadingItem.php Move ID->title logic into HeadingItem 2020-11-05 16:10:39 +00:00
Hooks.php Preserve a user's beta preference when not in beta 2021-01-14 23:46:47 +00:00
ImmutableRange.php ImmutableRange: Guard against appending empty fragments 2020-11-16 19:22:26 +00:00
NodeFilter.php CommentParser.php: Use tree walking instead of XPath 2020-07-15 16:40:50 +00:00
ThreadItem.php De-indent multi line comments when fetching comment bodies 2020-11-22 21:49:08 +00:00
TreeWalker.php Base TreeWalker implementation on PHPDOM 2020-11-19 23:45:42 +00:00