Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Web IDL

From Wikipedia, the free encyclopedia
Language used for web documents
This article has multiple issues. Please helpimprove it or discuss these issues on thetalk page.(Learn how and when to remove these messages)
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Web IDL" – news ·newspapers ·books ·scholar ·JSTOR
(July 2013) (Learn how and when to remove this message)
This articlepossibly containsoriginal research. Pleaseimprove it byverifying the claims made and addinginline citations. Statements consisting only of original research should be removed.(May 2013) (Learn how and when to remove this message)
(Learn how and when to remove this message)

Web IDL is aninterface description language (IDL) format for describingAPIs (application programming interfaces) that are intended to be implemented inweb browsers. Its adoption was motivated by the desire to improve the interoperability of web programming interfaces by specifying how languages such as ECMAScript should bind these interfaces.[1]

Description

[edit]

Web IDL is anIDL variant with:[2]

  • A number of features that allow one to more easily describe the behavior of common script objects in a web context.
  • A mapping of how interfaces described with Web IDL correspond to language constructs within anECMAScript execution environment.

Web specifications had been specified using OMG IDL since 1998, first with the DOM Level 1 specification.[3] However, interfaces defined using OMG IDL were not able to specify behavior for JavaScript precisely, leading to issues with interoperability.[3][1] WebIDL improved on this status quo by providing data types and binding specifications that make the intended behavior in JavaScript clearer.

Status of Web IDL specifications

[edit]

The first edition of the Web IDL specification became aCandidate Recommendation on 19 April 2012 and aW3C Recommendation on 15 December 2016.[4] For many years theEditor's Draft of a potential second edition, was what most new web specifications referenced. On 5 October 2021, the Editor's Draft was moved to theWHATWG as theWeb IDL Living Standard per anupdate to the agreement between the W3C and WHATWG.

Usage

[edit]
  • The W3C Wiki has a list of W3C Specifications that use Web IDL,[5] and nearly allWHATWG specifications use it.[6]
  • TheChromium Project has a page about using WebIDL to specify interfaces inBlink.[7]
  • Mozilla uses Web IDL in their software creation process, mapping implementations to Web IDL specs.[8]
  • WhenWebKit is built, the IDL files are parsed, creates the code to bind interfaces to implementations.[9]
  • In theES operating system, every system API is defined in Web IDL, and can be invoked from JavaScript directly.[10]

References

[edit]
  1. ^abHan, Xu (7 September 2008)."Web IDL: W3C Language Bindings for DOM Specifications Gets a New Name".InfoQ.
  2. ^"Web IDL (Second Edition)". World Wide Web Consortium. 18 January 2016. Retrieved24 January 2016.
  3. ^abMcCormack, Cameron (29 January 2013).""Web IDL: Defining Web APIs and Implementing JavaScript Bindings"".
  4. ^"Web IDL Standard".
  5. ^"Web IDL". W3C Wiki. Retrieved28 March 2017.
  6. ^"Web Hypertext Application Technology Working Group Specifications".WHATWG. Retrieved24 January 2016.
  7. ^"Web IDL in Blink".Blink Project Documentation. Retrieved9 June 2013.
  8. ^"Web IDL bindings".Firefox Source Docs. Retrieved3 August 2023.
  9. ^"WebKit Web IDL".trac.webkit.org. Retrieved9 June 2013.
  10. ^"The ES operating system". Archived fromthe original on 28 Mar 2022.

External links

[edit]
Protocols
Server APIs
Apache modules
Topics
Browser APIs
Web APIs
WHATWG
W3C
Khronos
Others
Topics
Related topics
Retrieved from "https://en.wikipedia.org/w/index.php?title=Web_IDL&oldid=1178901258"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp