This document is a section of the web browser standards support document. It includes detailed information about ECMAScript support in major web browsers.
ECMAScript is a language used to access and work with the DOM. It was developed as a standardized base for JavaScript and JScript.
These language constructs are used to control the flow of the program and compare and manipulate information.
Feature | Safari 2 |
---|---|
Types | |
Undefined | ? |
Null | ? |
Boolean | ? |
String | ? |
Number | ? |
Object | ? |
Basic expressions | |
this | ? |
new | ? |
Postfix ++ | ? |
Postfix -- | ? |
, | ? |
Unary expressions | |
delete | ? |
void | ? |
typeof | ? |
Prefix ++ | ? |
Prefix -- | ? |
+ | ? |
- | ? |
~ | ? |
! | ? |
Math expressions | |
+ | ? |
- | ? |
* | ? |
/ | ? |
% | ? |
Relational expressions | |
== | ? |
!= | ? |
=== | ? |
!== | ? |
< | ? |
> | ? |
<= | ? |
>= | ? |
instanceof | ? |
in | ? |
Binary expressions | |
& | ? |
^ | ? |
| | ? |
&& | ? |
|| | ? |
<< | ? |
>> | ? |
>>> | ? |
Assignment expressions | |
= | ? |
*= | ? |
/= | ? |
%= | ? |
+= | ? |
-= | ? |
<<= | ? |
>>= | ? |
>>>= | ? |
&= | ? |
^= | ? |
|= | ? |
Statements | |
Exp ? Exp : Exp | ? |
var | ? |
function | ? |
if | ? |
if ... else | ? |
do ... while | ? |
while | ? |
for | ? |
for in | ? |
continue | ? |
break | ? |
return | ? |
with | ? |
switch | ? |
throw | ? |
try | ? |
catch | ? |
finally | ? |
Objects are groups of related data and methods. The following objects are built into the ECMAScript language.
Feature | Safari 2 |
---|---|
Global | |
(General) | ? |
NaN | ? |
Infinity | ? |
undefined | ? |
eval() | ? |
parseInt() | ? |
parseFloat() | ? |
isNaN() | ? |
isFinite() | ? |
decodeURI() | ? |
decodeURIComponent() | ? |
encodeURI() | ? |
encodeURIComponent() | ? |
Object | |
(General) | ? |
constructor | ? |
toString() | ? |
toLocaleString() | ? |
valueOf() | ? |
hasOwnProperty() | ? |
isPrototypeOf() | ? |
prototypeIsEnumerable() | ? |
Function | |
(General) | ? |
prototype | ? |
constructor | ? |
toString() | ? |
apply() | ? |
call() | ? |
length | ? |
Array | |
(General) | ? |
prototype | ? |
constructor | ? |
toString() | ? |
toLocaleString() | ? |
concat() | ? |
join() | ? |
pop() | ? |
push() | ? |
reverse() | ? |
shift() | ? |
slice() | ? |
sort() | ? |
splice() | ? |
unshift() | ? |
length | ? |
String | |
(General) | ? |
prototype | ? |
fromCharCode() | ? |
constructor() | ? |
toString() | ? |
valueOf() | ? |
charAt() | ? |
charCodeAt() | ? |
concat() | ? |
indexOf() | ? |
lastIndexOf() | ? |
localeCompare() | ? |
match() | ? |
replace() | ? |
search() | ? |
slice() | ? |
split() | ? |
substring() | ? |
toLowerCase() | ? |
toLocaleLowerCase() | ? |
toUpperCase() | ? |
toLocaleUpperCase() | ? |
length | ? |
Boolean | |
(General) | ? |
prototype | ? |
constructor | ? |
toString() | ? |
valueOf() | ? |
Number | |
(General) | ? |
prototype | ? |
MAX_VALUE | ? |
MIN_VALUE | ? |
NaN | ? |
NEGATIVE_INFINITY | ? |
POSITIVE_INFINITY | ? |
constructor | ? |
toString() | ? |
toLocaleString() | ? |
valueOf() | ? |
toFixed() | ? |
toExponential() | ? |
toPrecision() | ? |
Math | |
(General) | ? |
E | ? |
LN10 | ? |
LN2 | ? |
LOG2E | ? |
LOG10E | ? |
PI | ? |
SQRT1_2 | ? |
SQRT2 | ? |
abs() | ? |
acos() | ? |
asin() | ? |
atan() | ? |
atan2() | ? |
ceil() | ? |
cos() | ? |
exp() | ? |
floor() | ? |
log() | ? |
max() | ? |
min() | ? |
pow() | ? |
random() | ? |
round() | ? |
sin() | ? |
sqrt() | ? |
tan() | ? |
Date | |
(General) | ? |
prototype | ? |
constructor | ? |
toString() | ? |
toDateString() | ? |
toTimeString() | ? |
toLocaleString() | ? |
toLocaleDateString() | ? |
toLocaleTimeString() | ? |
valueOf() | ? |
getTime() | ? |
getFullYear() | ? |
getUTCFullYear() | ? |
getMonth() | ? |
getUTCMonth() | ? |
getDate() | ? |
getUTCDate() | ? |
getDay() | ? |
getUTCDay() | ? |
getHours() | ? |
getUTCHours() | ? |
getMinutes() | ? |
getUTCMinutes() | ? |
getSeconds() | ? |
getUTCSeconds() | ? |
getMilliseconds() | ? |
getUTCMilliseconds() | ? |
getTimezoneOffset() | ? |
setTime() | ? |
setMilliseconds() | ? |
setUTCMilliseconds() | ? |
setSeconds() | ? |
setUTCSeconds() | ? |
setMinutes() | ? |
setUTCMinutes() | ? |
setHours() | ? |
setUTCHours() | ? |
setDate() | ? |
setUTCDate() | ? |
setMonth() | ? |
setUTCMonth() | ? |
setFullYear() | ? |
setUTCFullYear() | ? |
toUTCString() | ? |
RegExp | |
(General) | ? |
prototype | ? |
constructor | ? |
exec() | ? |
test() | ? |
toString() | ? |
source | ? |
global | ? |
ignoreCase | ? |
multiline | ? |
lastIndex | ? |
Error | |
(General) | ? |
prototype | ? |
constructor | ? |
name | ? |
message | ? |
toString() | ? |