• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item7256: Lang value needs to have a hyphen instead of an underscore

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal Closed   major 6.0.0

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

The HTML tag (the outer-most tag of a TWiki page) has the lang attribute (and xml:lang attribute) whose value is from %LANG%. It's derived from {Site}{Locale} but you need to replace an underscore (_) with an hyphen (-) to be compliant with RFC:4646 (which obsoletes RFC:3066, which obsoletes RFC:1766), which is referred to by the HTML 4.01 and XML standards.

There might be a situation where {Site}{Locale} derived value is not right. To cope with that, {Site}{Lang} is introduced to specify the %LANG% value explicitly.

<html ... lang="en_US" ... >
instead of
<html ... lang="en-US" ... >
confuses browser in some cases, and disables spell checking in a text area.

-- TWiki:Main/HideyoImazu - 2013-05-13

ItemTemplate
Summary Lang value needs to have a hyphen instead of an underscore
ReportedBy TWiki:Main.HideyoImazu
Codebase ~twiki4
SVN Range TWiki-5.1.3-trunk, Fri, 12 Apr 2013, build 25760
AppliesTo Engine
Component

Priority Normal
CurrentState Closed
WaitingFor

Checkins TWikirev:25915
TargetRelease major
ReleasedIn 6.0.0
Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r8 - 2013-10-15 - PeterThoeny
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback