Re: FAQ Topic - How can I see in javascript if a web browser accepts cookies? (2009-06-27)
- From: Thomas 'PointedEars' Lahn <PointedEars@xxxxxx>
- Date: Tue, 30 Jun 2009 18:58:16 +0200
Garrett Smith wrote:
ECMA recommends favoring toUTCString over toGMTString, though that may be
less widely supported, though how much so, I do not know. I checked Thomas'
es-matrix and did not see any of the "Date.prototype.toXXX" methods.
Thanks for pointing out. The local version had only .toLocaleString().
Compatibility per my current research is as follows:
JavaScript JScript ES JSC² KJS³ Opera
___________________________________________________________________________
..toDateString() 1.8 (N/A) 5.5.6330 (5.5) 3 530.17 3.5.9 5.02
..toGMTString() [S] 1.3 (1.0¹) 5.1.5010 (1.0) 1 530.17 3.5.9 5.02
..toLocaleDateString() 1.8 (1.0*) 5.5.6330 (5.5) 3 530.17 3.5.9 5.02
..toLocaleFormat(...) 1.8 (1.6) - - - - - -
..toLocaleString() [S] 1.3 (1.0) 5.1.5010 (1.0) 1 525.13 3.5.9 5.02
..toLocaleTimeString() 1.8 (1.0*) 5.5.6330 (5.5) 3 530.17 3.5.9 5.02
..toString() [S] 1.3 (1.1) 5.1.5010 (2.0) 1 530.17 3.5.9 5.02
..toSource() 1.3 (1.3) - - - - - -
..toTimeString() 1.8 (N/A) 5.5.6330 (5.5) 3 530.17 3.5.9 5.02
..toUTCString() [S] 1.3 (1.3) 5.1.5010 (3.0) 1 530.17 3.5.9 5.02
The versions here I have tested to date; text in parantheses denotes what is
documented instead, `*' denotes documentation that contradicts tests.
The completed Matrix (at <http://PointedEars.de/es-matrix>) will probably
feature sourced, documented, assumed, and tested versions. The versions
here denote the minimum requirements; newer versions are expected to support
the respective feature, too; tests have not shown otherwise.
Features marked with `[S]' can be considered safe according to these results
and based on the assumption that earlier versions are obsolete because the
user agents known to implement them can be considered obsolete. Note that
this assessment is likely to be subject to change as more implementations
are evaluated. If taken as a recommendation for design decisions, it should
be taken as a light one.
Relevant test environments were:
JavaScript
-----------
1.3: "Mozilla/4.78 [de] (Windows NT 5.0; U)"
1.8: "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.11) Gecko/2009061212
Iceweasel/3.0.11 (Debian-3.0.11-1)"
JScript
--------
5.1.5010: "Mozilla/4.0 (compatible; MSIE 5.01; Windows 98)"
5.5.6330: "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
5.6.6626: "Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)"
JavaScriptCore
---------------
525.13: "Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE)
AppleWebKit/525.13 (KHTML, like Gecko) Version/3.?.? Safari/525.??"
530.17: "Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE)
AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Safari/530.17"
KJS
----
"Mozilla/5.0 (compatible; Konqueror/3.5;
Linux 2.6.29.4-20090531.213230+0200; X11; i686; de, en_US)
KHTML/3.5.10 (like Gecko) (Debian package 4:3.5.10.dfsg.1-2)"
Opera
------
"Mozilla/4.0 (compatible; MSIE 5.0; Windows NT 5.1) Opera 5.02 [en]"
"Mozilla/4.0 (compatible; MSIE 5.0; Windows XP) Opera 6.06 [en]"
"Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT 5.1)
Opera 7.02 [en]"
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; en) Opera 8.0"
"Opera/9.27 (Windows NT 5.1; U; en)"
HTH
PointedEars
___________
¹ Deprecated since JavaScript 1.3
² Apple JavaScriptCore as used in WebKit-based UAs
³ Konqueror JavaScript as used in KHTML-based UAs
.
- References:
- FAQ Topic - How can I see in javascript if a web browser accepts cookies? (2009-06-27)
- From: FAQ server
- Re: FAQ Topic - How can I see in javascript if a web browser accepts cookies? (2009-06-27)
- From: kangax
- Re: FAQ Topic - How can I see in javascript if a web browser accepts cookies? (2009-06-27)
- From: Garrett Smith
- FAQ Topic - How can I see in javascript if a web browser accepts cookies? (2009-06-27)
- Prev by Date: Re: Script running too long, what to do?
- Next by Date: Re: Script running too long, what to do?
- Previous by thread: Re: FAQ Topic - How can I see in javascript if a web browser accepts cookies? (2009-06-27)
- Next by thread: Left margin off-screen in IE7 js-date2
- Index(es):
Relevant Pages
|