Bug 65716 - Can't set '-webkit-locale' by script to other value than 'auto'
Summary: Can't set '-webkit-locale' by script to other value than 'auto'
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-04 14:02 PDT by Mathias Nater
Modified: 2011-08-05 01:42 PDT (History)
1 user (show)

See Also:


Attachments
simple html test case (1.07 KB, text/html)
2011-08-04 14:02 PDT, Mathias Nater
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mathias Nater 2011-08-04 14:02:29 PDT
Created attachment 102975 [details]
simple html test case

Setting the '-webkit-locale' property to a language by JavaScript fails without any warning or error thrown.
It works for the value 'auto', thus.

See attached test-case. (Test 3 fails, 'de' is expected.)
Comment 1 mitz 2011-08-04 15:03:35 PDT
Locale identifiers are not CSS value keywords (like auto is). If you're using this syntax, you need to quote the identifier so that it's treated as a string, e.g. '"de"'.
Comment 2 Mathias Nater 2011-08-05 01:42:02 PDT
Thanks!
Looks scary…