mediawiki-extensions-Visual.../modules/ve-mw
Thiemo Kreuz 1f4880181e Don't allow parameter names that break the wikitext syntax
Any of these characters results in bad wikitext, when we accept
it in a template parameter name.

Instead of displaying an error message we simply block the
button, as long as the input is not a valid parameter name.
Coming up with a message is not really worth it, I would
argue. Users typically don't have a reason to use any of these
characters. This is super rare. And even if, the behavior of
the widget is not hard to understand, I believe.

The same is done in ve.ui.MWParameterSearchWidget, a little
hidden in the .addResults() method.

Not yet approved by UX. Can be done in demo time.

Bug: T285869
Change-Id: I5576cdfb90411e5fdec93749f72939d31ecd9c56
2021-09-03 15:20:13 +02:00
..
ce ve.ce.MWHeadingNode: Fix Uncaught TypeError: this.root is null 2021-08-26 21:35:19 +02:00
dm Fix …TemplateSpecModel reporting missing pages as documented 2021-09-01 14:59:03 +02:00
init Remove redundant initialization from LinkCache 2021-09-02 13:54:15 +02:00
preinit Cleanups and optimizations related to .parseDom() 2021-09-02 18:29:09 +00:00
tests Merge "Rename and document select/focus events in template dialog" 2021-09-03 09:38:21 +00:00
themes doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ui Don't allow parameter names that break the wikitext syntax 2021-09-03 15:20:13 +02:00