mediawiki-extensions-Discus.../tests/qunit
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
..
.eslintrc.json Improve ThreadItem documentation 2020-06-26 14:56:19 +02:00
index.js Fix skipping to the end of paragraph, now it considers nested tags 2021-01-18 18:20:20 +00:00
modifier.test.js Allow updating the expected results when running PHP tests 2020-08-04 03:05:28 +02:00
parser.test.js Parsing discussions converted to language variants 2020-09-16 22:07:07 +00:00
testUtils.js Connect sub-threads to their parent threads 2020-10-22 02:05:02 +02:00
ThreadItem.test.js Refactor CommentParser 2020-07-20 23:38:10 +01:00
utils.test.js Fix skipping to the end of paragraph, now it considers nested tags 2021-01-18 18:20:20 +00:00