-
Notifications
You must be signed in to change notification settings - Fork 127
Non standard and deprecated functions
paulbartrum edited this page Dec 14, 2015
·
1 revision
A number of functions are either non-standard or were officially deprecated by the Ecma standardization group. These functions are supported for compatibility reasons but they should not be used in new code. Support for these functions may be removed at a future date.
The following functions are deprecated:
- Date.prototype.getYear (use getFullYear instead)
- Date.prototype.setYear (use setFullYear instead)
- Date.prototype.toGMTString (use toUTCString instead)
- Date.prototype.escape (use encodeURI or encodeURIComponent instead)
- Date.prototype.unescape (use decodeURI or decodeURIComponent instead)
- RegExp.prototype.compile (do not use)
- String.prototype.substr (use slice or substring instead)
The following functions are non-standard:
- String.prototype.trimLeft
- String.prototype.trimRight
- String.prototype.anchor
- String.prototype.big
- String.prototype.blink
- String.prototype.bold
- String.prototype.fixed
- String.prototype.fontcolor
- String.prototype.fontsize
- String.prototype.italics
- String.prototype.link
- String.prototype.quote (new in v2)
- String.prototype.small
- String.prototype.strike
- String.prototype.sub
- String.prototype.sup
The following properties are non-standard:
- Function.prototype.name
- Function.prototype.displayName
- RegExp.$1 - RegExp.$9 (new in v2.1)
- RegExp.input, RegExp.$_ (new in v2.1)
- RegExp.lastMatch (new in v2.1)
- RegExp.lastParen (new in v2.1)
- RegExp.leftContext (new in v2.1)
- RegExp.rightContext (new in v2.1)