mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-28 10:11:45 +00:00
8f42c74985
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 |
||
---|---|---|
.. | ||
dt-ve | ||
lib | ||
.eslintrc.json | ||
CommentController.js | ||
CommentItem.js | ||
controller.js | ||
dt.debug.js | ||
dt.init.js | ||
dt.init.less | ||
dt.ui.NewTopicController.less | ||
dt.ui.ReplyWidget.js | ||
dt.ui.ReplyWidget.less | ||
dt.ui.ReplyWidgetPlain.js | ||
dt.ui.ReplyWidgetVisual.js | ||
HeadingItem.js | ||
highlighter.js | ||
highlighter.less | ||
logger.js | ||
modifier.js | ||
NewTopicController.js | ||
Parser.js | ||
ThreadItem.js | ||
utils.js |