-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Description
What type of issue is this?
Missing compatibility data
What information was incorrect, unhelpful, or incomplete?
SVG2 clarifies that multiple sibling <title> or <desc> elements are only valid if the values of their (xml:)lang attributes differ. The user agent should then select the choice that best matches the user‘s linguistic preference.
Apparently, the compatibility data currently only covers basic support, i.e. whether browsers can successfully parse that attribute at all. The support table for the respective elements also include whether a tooltip is shown, but not which.
The SVG specification notes in Issue 67 that this feature was at risk for lack of known implementations. Therefore, collecting this data could really help improve the situation of SVG internationalization, now that there is a WG again working on finalizing the standard.
What browsers does this problem apply to, if applicable?
No response
What did you expect to see?
A combined supports result for these tests:
- Do browsers choose the best fitting sibling
<title>or<desc>element based upon theirlangattribute values and user configuration, by displaying its content as a tooltip (or window/tab caption)? - Do browsers ignore all other siblings?
- Do browsers inherit the language from ancestors if the attribute is omitted?
- Do browsers choose the sibling with an empty language attribute value as default or fallback if no better match is found?
- Do browsers choose the first sibling if no match is found at all?
- Do browsers choose partial or approximate BCP47 matches over defaults? (unclear if expected behavior)
- Do browsers prefer
xml:langoverlang? - Do browser emit a warning or error message if
- values of
xml:langandlangdiffer? - both,
xml:langandlang, are used on the same element? - if deprecated
xml:langis used instead oflang? - if
langis used in an image declared as conforming to SVG 1.x? - if multiple
<title>or<desc>children are used in an image declared as conforming to SVG 1.x?
- values of
Did you test this? If so, how?
Not yet
Can you link to any release notes, bugs, pull requests, or MDN pages related to this?
Do you have anything more you want to share?
No response
MDN URL
https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/lang
MDN metadata
MDN page report details
- Query:
svg.global_attributes.lang - Report started: 2026-01-13T08:14:48.995Z