Page MenuHomePhabricator

Deleting last use of a named ref defined in <references> block should delete that ref
Closed, DuplicatePublic

Description

Steps to reproduce:

  1. Create an article with the following content (https://de.wikipedia.beta.wmflabs.org/w/index.php?title=VE-Ref-Test&oldid=22274):
a<ref name="foo"/>

<references>
<ref name="foo">Foo</ref>
</references>
  1. Edit in VE, and remove the reference, and add a different one instead (https://de.wikipedia.beta.wmflabs.org/w/index.php?title=VE-Ref-Test&diff=22275&oldid=22274).

Expected:
The named reference should be deleted.

Actual:
The named reference, now unused, is kept and causes an error that wasn't visible while editing (https://de.wikipedia.beta.wmflabs.org/w/index.php?title=VE-Ref-Test&oldid=22275).

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Esanders renamed this task from Deleting last use of a named ref should delete that ref to Deleting last use of a named ref defined in <references> block should delete that ref.May 3 2018, 2:24 PM
Esanders subscribed.

Hopefully Parsoid will take over the handling of references, so kicking this can down the road for them to deal with.

Vvjjkkii renamed this task from Deleting last use of a named ref defined in <references> block should delete that ref to 6pdaaaaaaa.Jul 1 2018, 1:12 AM
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
CommunityTechBot renamed this task from 6pdaaaaaaa to Deleting last use of a named ref defined in <references> block should delete that ref.Jul 1 2018, 7:29 AM
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot added a subscriber: Aklapper.
CommunityTechBot raised the priority of this task from High to Needs Triage.Jul 3 2018, 2:05 AM