Last modified: 2014-08-20 22:13:17 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 T68065, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66065 - <span name="foo "bar""> is rendered as plain text
<span name="foo "bar""> is rendered as plain text
Status: RESOLVED DUPLICATE of bug 69652
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Gabriel Wicke
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-03 09:05 UTC by Amir E. Aharoni
Modified: 2014-08-20 22:13 UTC (History)
3 users (show)

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


Attachments

Description Amir E. Aharoni 2014-06-03 09:05:18 UTC
To reproduce:
1. Edit an article in the English Wikipedia.
2. Press Insert -> Template.
3. Enter "Clarify" as the template name. Press "Add template".
4. Press "Add more information".
5. Press "reason".
6. Write the following line in the input box:
test "quotes"
(include the double quotes as in the line above)
7. Press "Insert template".

Observed: The inserted template says:
[<span title="test "quotes"">clarification needed]

Expected: The inserted template should say:
[clarification needed]
Comment 1 James Forrester 2014-06-09 15:39:51 UTC
This is a Parsoid problem, though arguably a bug with the template – it's failing to escape user input and so breaks if the users' input has a terminal quote.

Wikitext input:

  {{Clarify|reason = test "quotes"}}

MW parser output:

  <sup class="noprint Inline-Template" style="white-space:nowrap;">[<i><a href="/wiki/Wikipedia:Please_clarify" title="Wikipedia:Please clarify"><span>clarification needed</span></a></i>]</sup>

Parsoid output:

  <sup class="noprint Inline-Template " style="white-space:nowrap;" about="#mwt21" typeof="mw:Transclusion" data-mw="…" data-parsoid="…"><span typeof="mw:Entity" data-parsoid="…">[</span><i data-parsoid="…"><a rel="mw:WikiLink" href="../Wikipedia:Please_clarify" data-parsoid="…">&lt;span title="test "quotes""&gt;clarification needed</a></i><span typeof="mw:Entity" data-parsoid="…">]</span></sup>
Comment 2 ssastry 2014-08-20 22:13:17 UTC

*** This bug has been marked as a duplicate of bug 69652 ***

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


Navigation
Links