Page MenuHomePhabricator

A reflist under a section shows only the reference from the previous section and then suddenly expands to show the remaining upon pressing return
Open, Needs TriagePublic

Description

Steps to replicate:

  1. Open this section: https://en.m.wikipedia.beta.wmflabs.org/wiki/User:RYasmeen_(WMF)/sandbox#sub-heading_1
  1. Observe that, it's showing the reference of the previous section in the beginning.
  2. Now place your cursor after the reference now and press return

The reference list expands to show the other references on the page.

Event Timeline

This doesn't seem to be a recent regression, or related to the recent changes to mobile section editing. The same issue can be seen on desktop.

The problem is that VisualEditor renders all references in every references-list, while it should only render references up to this point. The initial rendering is from Parsoid, which does it correctly, so that's why it changes after you start typing.

I was unaware of this functionality, although I think in practice this is never done because it is really confusing (and a horrible feature). If multiple ref lists are used on a page, they are each given their own unique group.

In theory we should support it, but it practice I can't see this ever being a good use of our time.

JTannerWMF subscribed.

@Esanders provided the reason above of deprioritizing

I was unaware of this functionality, although I think in practice this is never done because it is really confusing (and a horrible feature).

Indeed. I think the only sensible reason I've seen for it is if you're quoting a fragment of an article on a talk page, you want to display the relevant references directly underneath your section (and without references from other sections), without having to fiddle with the markup. (And this again is not a use case we really try to support in VE.)

(the other task was closed, since it was unclear, let's keep this one)