Modify ↓
Ticket #1261 (new defect)
Add the HTML lang attribute to the html or body tags
| Reported by: | pavlos256@… | Owned by: | dark |
|---|---|---|---|
| Priority: | trivial | Milestone: | |
| Component: | Frontend | Version: | 2.0 beta |
| Keywords: | Cc: |
Description
This is a request to add the active language code to the generated HTML tags. For example:
<html lang="en"> or <body lang="el">
Some transformations, like the CSS text-transform: uppercase used for .ui_field_label, do not work right without it.
See: http://jsfiddle.net/s5uTu/ for example (the top div is wrong because the uppercase letters have accents, the bottom div is correct).
See also: https://bugzilla.mozilla.org/show_bug.cgi?id=307039
Attachments
Note: See
TracTickets for help on using
tickets.

To clarify, the lang attribute doesn't have to be applied to all elements that contain text, adding it to a parent (<html> or <body>) tag is enough.