Page MenuHomePhabricator

Reply added in the wrong place in case of list gap in the discussion
Closed, ResolvedPublic

Description

Consider a discussion page like this (https://en.wikipedia.beta.wmflabs.org/wiki/Talk:List_gap):

== Blah ==
These comments demonstrate [[wikipedia:MOS:LISTGAP|list gap]]. ~~~~
: Blah. ~~~~
:: Blah blah. ~~~~

:: I broke it! ~~~~

image.png (1×2 px, 435 KB)

Trying to reply to the top-level comment should add the reply at the very bottom. Instead, it adds the reply at the gap:

image.png (1×2 px, 436 KB)
image.png (1×2 px, 456 KB)

Event Timeline

Change 564854 merged by jenkins-bot:
[mediawiki/extensions/DiscussionTools@master] Pick reply insertion point based on parser tree, not DOM tree

https://gerrit.wikimedia.org/r/564854