This core language is also used in non-browser environments, for example in node.js .
Among other things, ECMAScript defines:
try...catch, ability to create user-defined
windowobject, but ECMAScript only defines the APIs not specific to browsers, e.g.
Objectintrospection methods, etc.)
The major 6th Edition of ECMAScript was officially approved and published as a standard on June 17, 2015 by the ECMA General Assembly. Since then ECMAScript Editions are published on a yearly basis.
ECMAScript 国际化 API 规范
object. The Internationalization specification is nowadays also ratified on a yearly basis and browsers constantly improve their implementation.
WebIDL specification provides the glue between the DOM technologies and ECMAScript.
The Document Object Model (DOM) is a cross-platform, language-independent convention for representing and interacting with objects in HTML, XHTML and XML documents. Objects in the DOM 树 may be addressed and manipulated by using methods on the objects. The W3C standardizes the Core Document Object Model, which defines language-agnostic interfaces that abstract HTML and XML documents as objects, and also defines mechanisms to manipulate this abstraction. Among the things defined by the DOM, we can find:
From the ECMAScript point of view, objects defined in the DOM specification are called "host objects".
, the Web's markup language, is specified in terms of the DOM. Layered above the abstract concepts defined in DOM Core, HTML also defines the
of elements. The HTML DOM includes such things as the
property on HTML elements, or APIs such as
The HTML specification also defines restrictions on documents; for example, it requires all children of a
element, which represents an unordered list, to be
elements, as those represent list items. In general, it also forbids using elements and attributes that aren't defined in a standard.
setIntervalfunctions were first specified on the
Windowinterface in HTML Standard.