@kcjpop/x-browser-compat
Version:
A Web Component to display browser compatibility data
1 lines • 2.16 kB
JSON
{"mdn_url":"https://developer.mozilla.org/docs/Web/API/Navigator/onLine","source_file":"api/Navigator.json","spec_url":"https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-online-dev","status":{"deprecated":false,"experimental":false,"standard_track":true},"support":{"chrome":{"notes":"Earlier versions of Chrome incorrectly return true when a tab is first opened, but it starts reporting the correct connectivity status after the first network event. Windows: 11, macOS: 14, Chrome OS: 13, Linux: Always returns <code>true</code>. For history, see <a href='https://crbug.com/7469'>crbug.com/7469</a>.","version_added":"2"},"chrome_android":{"version_added":"18"},"edge":{"version_added":"12"},"firefox":{"notes":"Since Firefox 4 the browser returns <code>true</code> when 'Work Offline' mode is disabled and <code>false</code> when it is enabled, regardless of actual connectivity. Since Firefox 41, on OS X and Windows, the returned values follow the actual network connectivity, unless 'Work offline' mode is selected (where it will always return <code>false</code>).","version_added":"1.5"},"firefox_android":{"version_added":"4"},"ie":{"notes":"in Internet Explorer 8 'online' and 'offline' events are raised on the <code>document.body</code>; under IE 9 they are raised on both <code>document.body</code> and <code>window</code>.","version_added":"4"},"oculus":{"version_added":"5.0"},"opera":{"notes":"From Opera 11.1 until Opera 12.1, the browser returns <code>true</code> when 'Work Offline' mode is disabled and <code>false</code> when it is enabled, regardless of actual connectivity.","version_added":"3"},"opera_android":{"notes":"From Opera 11.1 until Opera 12.1, the browser returns <code>true</code> when 'Work Offline' mode is disabled and <code>false</code> when it is enabled, regardless of actual connectivity.","version_added":"10.1"},"safari":{"version_added":"4"},"safari_ios":{"version_added":"3.2"},"samsunginternet_android":{"version_added":"1.0"},"webview_android":{"notes":"Can incorrectly return true, see <a href='https://crbug.com/811122'>bug 811122</a>.","partial_implementation":true,"version_added":"≤37"}}}