SVG switch


<switch> is a conditional processing attribute. It doesn't prevent elements from being referenced by other elements. In our case, <switch> evaluates the systemLanguage value on its direct child elements that matches the user's language. Once is found, the child is rendered and the other children will be bypassed.

If the systemLanguage is not specified, the child will be displayed, allowing us specifying a fallback.

Related W3C Recommendation informations