Page MenuHomePhabricator

VisualEditor: You shouldn't be able to set bold or other text attributes for ref tags
Closed, InvalidPublic

Description

Steps to Reproduce:

  1. Select a ref tag.
  1. Click on bold in the character formatting menu.

Actual Results:
It dutifully adds the character formatting: <ref>Foo</ref> becomes '''<ref>Foo</ref>'''

http://en.wikipedia.beta.wmflabs.org/w/index.php?title=User:Whatamidoing_(WMF)/Sandbox&diff=91700&oldid=91692

Reproducible: Didn't try


Version: unspecified
Severity: minor

Details

Reference
bz64718

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:23 AM
bzimport added a project: VisualEditor.
bzimport set Reference to bz64718.

Why not? This is entirely valid, and relatively common, wikitext… VE has to let you make all kinds of stupid stylistic errors, because (a) it's our job to let you do anything you can validly do in wikitext, and (b) you might want to use VE to correct such things, which stripping in VE would prevent.

If it's "valid", then why doesn't it do anything?

'''<ref>Foo</ref>''' doesn't actually produce a bold-faced [1].

I see your point about (b) but you can't see the existence of the misplaced bold in VisualEditor, so I doubt that anyone would actually use it to fix it.