Page MenuHomePhabricator

Parsoid/VE: Correctly update details on named references with indentical main content
Closed, InvalidPublic

Description

This is a bug, convert to a bug.

User story

As VE user I want to be able to update details content, if there's identical main content in Wikitext.

Acceptance criteria

Input

<ref details="page 1" name="book">Miller</ref>
<ref details="page 2" name="book">Miller</ref>

Action
Edit both details in VE.

Expected outcome
The main content should stay untouched on save.

Current state

Currently saving the changed details would result in Wikitext where the 2nd main content is overwritten by the 2nd details.

<ref details="page 1 changed" name="book">Miller</ref>
<ref details="page 2 changed" name="book">page 2 changed</ref>