Page MenuHomePhabricator

Cite: <ref name="Foo "Bar" Baz" /> breaks parsing of <ref>, is rendered as plain text
Closed, DuplicatePublic

Description

Where a reference contains a name string with more than two " characters VE does not see it as a reference, although the PHP parser does.

e.g. <ref name="Miranda - Stevie sings "Proud" on YouTube">{{cite web|url=http://www.youtube.com/watch?v=idNNIUUg5NE|title=Miranda - Stevie sings "Proud" on YouTube}}</ref> is seen as a reference by the PHP parser but not by VE.

Seen at [[Miranda (TV_series)#Cast and Characters]]
Tested at https://en.wikipedia.org/w/index.php?title=User:Thryduulf/sandbox4&oldid=576110777 where in view mode there are four references but in VE only the middle two are recognised as references.


Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=66065

Details

Reference
bz55400

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:12 AM
bzimport added a project: Parsoid.
bzimport set Reference to bz55400.

Problem is in Parsoid:

<ref name="Foo 'Bar' Baz">Foo</ref>

->

<p data-parsoid="{&quot;dsr&quot;:[0,35,0,0]}"><span about="#mwt2" class="reference" data-mw="{&quot;name&quot;:&quot;ref&quot;,&quot;body&quot;:{&quot;html&quot;:&quot;Foo&quot;},&quot;attrs&quot;:{&quot;name&quot;:&quot;Foo 'Bar' Baz&quot;}}" id="cite_ref-Foo 'Bar' Baz-1-0" rel="dc:references" typeof="mw:Extension/ref" data-parsoid="{&quot;src&quot;:&quot;<ref name=\&quot;Foo 'Bar' Baz\&quot;>Foo</ref>&quot;,&quot;dsr&quot;:[0,35,26,6]}"><a href="#cite_note-Foo 'Bar' Baz-1">[1]</a></span></p>

But:

<ref name="Foo "Bar" Baz">Foo</ref>

->

<p data-parsoid="{&quot;dsr&quot;:[37,72,0,0]}">&lt;ref name="Foo "Bar" Baz"&gt;Foo&lt;/ref&gt;</p>

Arguably this is horribly-broken wikitext and should be burnt with fire, of course.

I am tempted to WONTFIX this. How common of a use case is this?

  • Bug 57252 has been marked as a duplicate of this bug. ***

@Chris McKenna, James: How common is this issue? Is it worth supporting such broken attributes?

Setting priority to low until it is clear that this is an issue we should tackle.

Arlolra set Security to None.

Similar issue at https://en.wikipedia.org/w/index.php?title=2015_Nepal_earthquake&action=edit&oldid=659417822 / https://en.wikipedia.org/w/index.php?title=2015_Nepal_earthquake&veaction=edit&oldid=659417822:

<ref name=Daily 'AFAD'>{{cite news |title=Turkey's AFAD and international aid organizations rush to Nepal after devastating earthquake |work=Daily Sabah Asia Pacific |date=25 April 2015 |accessdate=25 April 2015 |url=http://www.dailysabah.com/asia/2015/04/25/turkeys-afad-and-international-aid-organizations-rush-to-nepal-after-devastating-earthquake}}</ref>

becomes text (linked and italicized, but not a reference):

<ref name=Daily 'AFAD'>"Turkey's AFAD and international aid organizations rush to Nepal after devastating earthquake". Daily Sabah Asia Pacific. 25 April 2015. Retrieved 25 April 2015.</ref>
Arlolra raised the priority of this task from Low to Medium.Nov 12 2015, 8:00 PM
Arlolra lowered the priority of this task from Medium to Low.
Arlolra raised the priority of this task from Low to Medium.Nov 18 2015, 1:45 AM