Last modified: 2014-06-09 15:39:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57400, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55400 - Cite: <ref name="Foo "Bar" Baz" /> breaks parsing of <ref>, is rendered as plain text
Cite: <ref name="Foo "Bar" Baz" /> breaks parsing of <ref>, is rendered as pl...
Status: NEW
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Low normal
: ---
Assigned To: Gabriel Wicke
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-07 08:47 UTC by Chris McKenna
Modified: 2014-06-09 15:39 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Chris McKenna 2013-10-07 08:47:33 UTC
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.
Comment 1 James Forrester 2013-10-08 20:27:58 UTC
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.
Comment 2 ssastry 2013-10-08 20:54:21 UTC
I am tempted to WONTFIX this. How common of a use case is this?
Comment 3 Derk-Jan Hartman 2013-11-19 17:29:23 UTC
*** Bug 57252 has been marked as a duplicate of this bug. ***
Comment 4 Gabriel Wicke 2013-12-04 01:03:26 UTC
@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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links