Last modified: 2014-07-21 22:58:11 UTC
Steps to reproduce: 1.Click on the "Edit" button 2.Insert a reference with no content. 3.Save the page Observed Result: The error message that appears on the page is "Cite error: The opening <ref> tag is malformed or has a bad name" where as when you edit a reference (not first time insert) to an empty content the error message that appears is "Cite error: There are <ref> tags on this page without content in them" The later one is more understandable for a user.So maybe we can change the message to the later one.
Created attachment 13912 [details] screenshot
Created attachment 13913 [details] Screenshot of the error
(Not a VisualEditor-specific issue.)
The examples are on the English Wikipedia, where the cite errors are heavily customized. * "Cite error: The opening <ref> tag is malformed or has a bad name" is through "MediaWiki:Cite error ref no key" * "Cite error: There are <ref> tags on this page without content in them" is through "MediaWiki:Cite error ref no input"
The test page in question includes '<ref />' which is invalid. This triggers 'MediaWiki:Cite error ref no key'. The default error message is "Invalid <ref> tag; refs with no content must have a name" The customized message on enwiki is "The opening <ref> tag is malformed or has a bad name (see the help page)." The linked help page explains the issue in depth.