Re: FAQ Topic - How can I see in javascript if a web browser accepts cookies? (2009-06-27)



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
.



Relevant Pages

  • Re: Process does not contain any programs (???)
    ... Not sure what to put on that bug report. ... New feature didn't work. ... Wanted to set a breakpoint. ... have any representation in the documentation (Note to Microsoft: ...
    (microsoft.public.vc.mfc)
  • Re: Is WM5 worth trying on a Dell Axim x50v?
    ... I've done my google searches for this documentation, ... to come up with is people complaining about the feature removal. ... have been extra effort, but it would have made a sizeable portion of their ... and require a VPN connection to sync. ...
    (microsoft.public.pocketpc)
  • Re: New OK, OR and WA highway-pictures
    ... >> Auto-resize is an integrated feature of the website. ... >> the highway-shield pop and access some more of your favourite highways. ... > 'JavaScript', since I download plans from a few state D.O.T. sites ... I agree, Firefox has an option to disable Javascript, but this is ...
    (misc.transport.road)
  • Re: opacity
    ... You are assuming that a value needs to yield typeof "object" in order to ... They all start at the global object, ... I would most certainly not perform this feature test. ... Prototype.js was written by people who don't know javascript for people ...
    (comp.lang.javascript)
  • Re: custom windows media player controls
    ... Yes, Tramaine, please get the latest documentation. ... Windows Media Player SDK ... I used to option to add javascript to the image instead of an anchor tag. ... documents - in the original code you have the correct CLASSID value, ...
    (microsoft.public.windowsmedia.sdk)