mediawiki-extensions-Discus.../modules
Bartosz Dziewoński ffd680ee7f Fix adding comments in lists containing <dt> tags
The issue occurred when replying to a comment consisting of multiple
list items, starting with a <dt> (instead of the expected <dd>), so
that the comment is considered to be unindented.

Modifier tried to add the reply directly inside the list (<dl>) rather
than inside the last list item (<dt>), which caused it to be confused
about indentation levels and try to un-indent more times than there
were indentations.

The simplest solution, given the existing code, is to add the reply
outside the list instead, in a new list. This results in a "list gap"
(<dl><dt>...</dt><dd>...</dd></dl><dl><dd>...</dd></dl>), but I think
it's acceptable for this rare case.

There are separate tests cases for old Parser and for Parsoid HTML,
because they parse the original wikitext differently (with the old
Parser producing HTML with a list gap too).

Bug: T279445
Change-Id: Ie0ee960e7090cf051ee547b480c980e9530eda51
2021-04-21 16:00:07 +02:00
..
dt-ve UsernameCompletion: Use ve.ce.Surface.findMatchingSequences 2021-03-24 17:56:20 +00:00
lib Handle timestamps in daylight saving time 2019-10-22 16:33:21 +02:00
.eslintrc.json eslint: Disable max-len 2020-04-21 15:50:19 +01:00
AbandonCommentDialog.js Separate dialog for abandoning a new topic 2021-01-19 21:40:21 +01:00
AbandonTopicDialog.js Separate dialog for abandoning a new topic 2021-01-19 21:40:21 +01:00
CommentController.js Include comment names in 'transcludedfrom' API response 2021-04-07 22:46:36 +02:00
CommentItem.js Move warnings stuff from CommentItem to ThreadItem 2020-11-02 20:07:23 +00:00
controller.js Include comment names in 'transcludedfrom' API response 2021-04-07 22:46:36 +02:00
dt.debug.js Remove a fixed TODO comment 2020-12-14 22:16:16 +01:00
dt.init.js Migrate cookie hack users to beta feature 2021-04-14 20:36:32 +02:00
dt.init.less Remove <header> tags around headings for compat with MobileFrontend 2021-04-19 17:47:43 +02:00
dt.ui.NewTopicController.less Change dt- class prefix to ext-discussiontools- 2021-03-13 14:42:39 +00:00
dt.ui.ReplyWidget.js Fire the 'wikipage.content' hook on previews 2021-04-08 21:38:45 +02:00
dt.ui.ReplyWidget.less Improve mode selector keyboard interactions 2021-03-18 15:15:40 +01:00
dt.ui.ReplyWidgetPlain.js Trim wikitext for preview 2021-03-24 18:53:41 +01:00
dt.ui.ReplyWidgetVisual.js Change dt- class prefix to ext-discussiontools- 2021-03-13 14:42:39 +00:00
HeadingItem.js Ability to add new discussion sections 2021-01-12 20:15:28 +00:00
highlighter.js Change dt- class prefix to ext-discussiontools- 2021-03-13 14:42:39 +00:00
highlighter.less Change dt- class prefix to ext-discussiontools- 2021-03-13 14:42:39 +00:00
logger.js Make the source mode toolbar a user preference feature 2021-03-31 22:40:53 +02:00
ModeTabOptionWidget.js Improve mode selector keyboard interactions 2021-03-18 15:15:40 +01:00
ModeTabSelectWidget.js Improve mode selector keyboard interactions 2021-03-18 15:15:40 +01:00
modifier.js Fix adding comments in lists containing <dt> tags 2021-04-21 16:00:07 +02:00
NewTopicController.js Check if you can edit the page before opening the tools 2021-03-25 17:04:31 +01:00
Parser.js Introduce comment "names" to identify comments across revisions/pages 2021-03-23 16:08:42 +00:00
ThreadItem.js Merge "Remove compatibility code for 'data-mw-comment-start' change" 2021-04-06 13:48:19 +00:00
utils.js Give comments IDs so they can be scrolled to with hash links 2021-03-20 15:43:23 +00:00