Page MenuHomePhabricator

Flag invalid wikitext to the editor's attention in VisualEditor
Closed, DeclinedPublic

Description

Some kinds of invalid wikitext result in unexpected behavior within VisualEditor. The example reported was a case of <ref name"Foo">, which Cite.php interprets as <ref> and which VisualEditor displays as text (both opening and closing ref tags).

When something is known to be wrong, maybe VisualEditor should add note or flag around the known-broken wikitext, to indicate to the user that VisualEditor and/or Parsoid has identified an error in the wikitext.

Event Timeline

Whatamidoing-WMF raised the priority of this task from to Medium.
Whatamidoing-WMF updated the task description. (Show Details)

This is fundamentally impossible for VisualEditor to do, because it doesn't know wikitext.

There's already the parsing failure project with Parsoid supports – but I'm not sure whining to every editor in VisualEditor is very user-friendly.

Arlolra subscribed.

Parsing errors are now surfaced with MediaWiki-extensions-Linter