Extension:NativeSvgHandler/fr
![]() | Browser support for rendering SVGs varies widely, so the appearance of an SVG cannot be guaranteed to be consistent for all viewers. Don't rely on SVGs appearing the same for all viewers. |
![]() État de la version : stable |
|
---|---|
Implémentation | Média |
Description | Serves SVG images directly to clients |
Auteur(s) | alistair3149discussion |
Dernière version | 1.4.0 |
Politique de compatibilité | Le master conserve la compatibilité arrière. |
MediaWiki | 1.35+ |
Modifie la base de données |
Non |
Composer | mediawiki/native-svg-handler |
Licence | Licence publique générale GNU v3.0 |
Téléchargement | |
Traduire l’extension NativeSvgHandler sur translatewiki.net si elle y est disponible | |
The NativeSvgHandler extension allows SVG files to be served directly to clients for client-side rendering.
Installation
- Téléchargez et placez le(s) fichiers (s) dans un répertoire appelé
NativeSvgHandler
dans votre dossierextensions/
. - Ajoutez le code suivant à la fin de votre fichier
LocalSettings.php
:wfLoadExtension( 'NativeSvgHandler' );
Fait – Accédez à Special:Version sur votre wiki pour vérifier que l'extension a bien été installée.
Security
NativeSvgHandler serves SVG directly to clients through image tags, which is not vulnerable to XSS attack. XSS attacks are only relevant when it is accessed directly through original file on the file page, which is neither in the scope nor in control of this extension.
![]() | This extension is included in the following packages and/or wiki farms: |