Page MenuHomePhabricator

Unnecessary quotes in ref names in <references>...<references> sectiion
Open, MediumPublic

Description

I use the source editor, and often put references between <references>...</references> to keep he source uncluttered.

It seems that the visual editor will insert unnecessary quotes around the names of ALL such references, whenever it is used to edit the article. See for example [https://en.wikipedia.org/w/index.php?title=Graphene&type=revision&diff=970831602&oldid=970749638 This change] (search for <references>)

As that example shows, that insertion of unnecessary quotes confuses the "diff" algorithm and creates huge and confusing change logs. Could you please fix the visual editor so that it preserves any entries between <references> and </references> unchanged?

Event Timeline

A simple way to reproduce this is by editing the contents of the "a" ref,

<ref name="a" />

<references>
<ref name=b>test</ref>
<ref name="a">haha</ref>
</references>

The granularity of diff'ing will say that references tag was modified and then the whole thing will be normalized. This is another case for T214651