Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-9816

Ensure "lang" attribute is set in <html> tags

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.15.3
    • 1.17.0, 1.16.1
    • Core UI, NiFi Registry
    • None

    Description

      Accessibility standards require every <html> tag to have a "lang" attribute where the value represents the primary language of the document. From the [WCAG 2.1 requirement's description|https://www.w3.org/WAI/WCAG21/Techniques/html/H57], identifying the language of the document is important for a number of reasons:

      • It allows braille translation software to substitute control codes for accented characters, and insert control codes necessary to prevent erroneous creation of Grade 2 braille contractions.
      • Speech synthesizers that support multiple languages will be able to orient and adapt to the pronunciation and syntax that are specific to the language of the page, speaking the text in the appropriate accent with proper pronunciation.
      • Marking the language can benefit future developments in technology, for example users who are unable to translate between languages themselves will be able to use machines to translate unfamiliar languages.
      • Marking the language can also assist user agents in providing definitions using a dictionary.

      While reviewing the backlog for existing tickets related to localization, I found there's already been some significant (though stale) work done to implement localization/multilingualization (NIFI-4785). Given that work, I would suggest compatible JSTL changes be made to the existing JSPs and otherwise hardcode lang="en" in existing HTML pages until further localization improvements are made.

       

      Attachments

        Issue Links

          Activity

            People

              joncon Jonathan Conti-Vock
              joncon Jonathan Conti-Vock
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h