Jump to content
MediaWiki

Manual:$wgResourceLoaderValidateJS: Difference between revisions

From mediawiki.org
Content deleted Content added
Line 7: Line 7:
|range=(<translate><!--T:1--> boolean</translate>)
|range=(<translate><!--T:1--> boolean</translate>)
|default=<syntaxhighlight lang="php" inline>true</syntaxhighlight>
|default=<syntaxhighlight lang="php" inline>true</syntaxhighlight>
|summary=<translate>Validate JavaScript code loaded from wiki pages.</translate>
|summary=<translate>(追記) <!--T:6--> (追記ここまで)Validate JavaScript code loaded from wiki pages.</translate>
}}
}}
<translate>
<translate>
== Details == <!--T:3-->
== Details == <!--T:3-->
</translate>
</translate>
<translate>Validate JavaScript code loaded from wiki pages.</translate>
<translate>(追記) <!--T:7--> (追記ここまで)Validate JavaScript code loaded from wiki pages.</translate>
<translate>If a syntax error is found, the script is replaced with a warning logged to the browser console.</translate>
<translate>(追記) <!--T:8--> (追記ここまで)If a syntax error is found, the script is replaced with a warning logged to the browser console.</translate>
This ensures errors are found early and consistently (independent of the editor's own browser), and prevents breaking other modules loaded in the same batch from load.php.
This ensures errors are found early and consistently (independent of the editor's own browser), and prevents breaking other modules loaded in the same batch from load.php.



Revision as of 12:42, 14 January 2024

ResourceLoader: $wgResourceLoaderValidateJS
Validate JavaScript code loaded from wiki pages.
Introduced in version:1.18.0 (r91608)
Removed in version:Still in use
Allowed values:(boolean)
Default value:true
Other settings: Alphabetical | By function

Details

Validate JavaScript code loaded from wiki pages. If a syntax error is found, the script is replaced with a warning logged to the browser console. This ensures errors are found early and consistently (independent of the editor's own browser), and prevents breaking other modules loaded in the same batch from load.php.

AltStyle によって変換されたページ (->オリジナル) /