Page MenuHomePhabricator

Don't allow nested <ref>s, because Cite.php doesn't
Closed, ResolvedPublic1 Estimated Story Points

Description

From http://en.wikipedia.org/wiki/Wikipedia:VisualEditor/Feedback#VE.2C_Sfn_template_within_reference.2C_Vcite_error

Adding a <ref> tag (e.g., a bibliographic citation) inside another <ref> tag with a different group (e.g., an explanatory footnote), displays as desired in VisualEditor, but when you save the page, it isn't visible because of T22707 in Cite.php

This is most likely to happen with a ref-creating template like {{sfn}}, since VisualEditor doesn't have the buttons to created nested ref tags directly.


Version: unspecified
Severity: minor
URL: http://en.wikipedia.org/w/index.php?title=Wikipedia:VisualEditor/Feedback&diff=570036528&oldid=570035364

Details

Reference
bz53303

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:47 AM
bzimport set Reference to bz53303.

(In reply to comment #0)

Adding a <ref> tag (e.g., a bibliographic citation) inside another <ref> tag
with a different group (e.g., an explanatory footnote), displays as desired
in
VisualEditor, but when you save the page, it isn't visible because of Bug
20707
in Cite.php

If this problem is covered in bug 20707 already I'm not sure what your intention was to file another bug report. Could you clarify please?

We have mismatched behavior. Either *both* systems should display nested refs, or VisualEditor should stop displaying nested refs to match the limited features available to readers.

Whether this mismatch should be solved by reducing VisualEditor's ability to process nested refs or by increasing the other system's ability to process nested refs is beyond my paygrade.

Jdforrester-WMF renamed this task from VisualEditor: Don't allow nested <ref>s, because Cite.php doesn't to Don't allow nested <ref>s, because Cite.php doesn't.Dec 1 2014, 9:19 PM
Jdforrester-WMF closed this task as Resolved.
Jdforrester-WMF assigned this task to Esanders.
Jdforrester-WMF set Security to None.