This repository has been archived by the owner on Feb 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(browser support): add IE11 - 10 - 9 support
+ document browser support
- Loading branch information
vvo
committed
May 13, 2016
1 parent
bcadf6b
commit 0365683
Showing
6 changed files
with
36 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -534,6 +534,19 @@ Once you do so, the default `algolia-places` class name will turn into `algolia- | |
|
||
See our [styling examples](./examples.html#input-styling). | ||
|
||
## Browser support | ||
|
||
Algolia Places comes with native support for all current | ||
major browsers: Chrome, Firefox, Edge, Opera and Safari. | ||
|
||
It also works natively on Internet Explorer 11 and 10. | ||
|
||
To support Internet Explorer 9, you need to include a polyfill for | ||
[Element.classList](https://developer.mozilla.org/en-US/docs/Web/API/Element/classList). | ||
|
||
To do so, you can use the [Polyfill.io service](https://cdn.polyfill.io/v2/docs/). | ||
|
||
|
||
## Rate limits | ||
|
||
Algolia Places enforces a default limit of **1,000 requests per hour and per IP** for free usage. You can contact us by <a href="mailto:[email protected]">e-mail</a> if you need more. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// polyfill for navigator.language (IE <= 10) | ||
// not polyfilled by https://cdn.polyfill.io/v2/docs/ | ||
|
||
// Defined: http://www.whatwg.org/specs/web-apps/current-work/multipage/timers.html#navigatorlanguage | ||
// with allowable values at http://www.ietf.org/rfc/bcp/bcp47.txt | ||
// Note that the HTML spec suggests that anonymizing services return "en-US" by default for | ||
// user privacy (so your app may wish to provide a means of changing the locale) | ||
if (!('language' in navigator)) { | ||
navigator.language = | ||
// IE 10 in IE8 mode on Windows 7 uses upper-case in | ||
// navigator.userLanguage country codes but per | ||
// http://msdn.microsoft.com/en-us/library/ie/ms533052.aspx (via | ||
// http://msdn.microsoft.com/en-us/library/ie/ms534713.aspx), they | ||
// appear to be in lower case, so we bring them into harmony with navigator.language. | ||
(navigator.userLanguage && navigator.userLanguage.replace(/-[a-z]{2}$/, String.prototype.toUpperCase)) || | ||
'en-US'; // Default for anonymizing services: http://www.whatwg.org/specs/web-apps/current-work/multipage/timers.html#navigatorlanguage | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters