[原创作品]2008年9月《Web IDL:W3C DOM规范语言绑定有了新名称》

全文于2008年9月7日发布于InfoQ中文站上:http://www.infoq.com/cn/news/2008/09/WebIDL 摘要 <以下略> W3C Web应用工作组(Web Applications Working Group)最近发布了Web IDL工作草案,即过去的DOM规范语言绑定(Language Bindings for DOM Specifications)。该工作草案定义了一个OMG IDL 3.0版的语法子集,供那些定义接口的规范使用。InfoQ采访了该规范的编辑,以进一步了解该规范、以及该规范对Web开发社区的影响。由该工作草案定义的接口定义语言叫作Web IDL,它可被用来描述要在Web浏览器里实现接口。Web IDL是一种IDL的变体,它具有很多特性,使之可以更加容易地对Web平台里的公共脚本对象的行为进行规定。为了支持过去只能以文字描述的公共功能,该IDL在很多方面得到了扩展。另外,它还为ECMAScript第3版和Java给出了精确的语言绑定。该规范文档的介绍部分解释了为什么要有这个规范: 过去,W3C技术术报告都是用对象管理组织(OMG)的接口定义语言(IDL)[OMGIDL]来描述编程语言接口的。利用该IDL,可以独立于语言的方式来描述这些接口。通常,这些文档还要另外提供一个语言绑定的附录,以详细描述用IDL描述的接口如何与给定语言的构造成分相对应。然而,这些规范为ECMAScript(Web上最常用的语言)给出绑定时,描述的精确度很低,因而造成互操作性问题。另外,各个规范必须描述同样的基本信息,比如:用IDL描述的DOM接口相当于ECMAScript全局对象的属性,或者无符号长整数IDL类型映射为ECMAScript的数值类型,等等。 Web IDL的目的,就是详细规定W3C规范用来定义接口的语言,并为这种接口的ECMAScript与Java绑定提供精确的合法性需求。W3C期望该文档对已发布规范的实现者起到指南作用,并希望以后发布的规范参照本文档,以确保合乎规范的接口实现能够互操作。“这对于HTML 5的建设将有极大的帮助”,HTML 5编辑Ian Hickson说。另外,XMLHttpRequest Level 2的制定也将参照Web IDL。 <以下略>



2008-09 "Web IDL: W3C Language Bindings for DOM Specifications Gets a New Name"

The whole story was published on InfoQ on 2008-09-07:http://www.infoq.com/news/2008/09/WebIDL The W3C Web Applications Working Group recently published the working draft of Web IDL which was formerly known as the Language Bindings for DOM Specifications. The working draft defines a syntactic subset of OMG IDL version 3.0 for use by specifications that define interfaces. InfoQ spoke to the specification editor to learn more about the specification and its impact on the Web development community.The interface definition language defined by the working draft is called Web IDL which can be used to describe interfaces that are intended to be implemented in web browsers. Web IDL is an IDL variant with a number of features that allow the behavior of common script objects in the web platform to be specified more readily. A number of extensions are given to theIDL to support common functionality that previously must have been written in prose. In addition, precise language bindings for ECMAScript 3rd Edition and Java are given. The Introduction part of the document explains the reason for having such a specification: Technical reports published by the W3C that include programming language interfaces have typically been described using the Object Management Group’s Interface Definition Language (IDL) [OMGIDL]. The IDL provides a means to describe these interfaces in a language independent manner. Usually, additional language binding appendices are included in such documents which detail how the interfaces described with theIDL correspond to constructs in the given language. However, the bindings in these specifications for the language most commonly used on the web, ECMAScript, are consistently specified with low enough precision as to result in interoperability issues. In addition, each specification must describe the same basic information, such as DOM interfaces described inIDL corresponding to properties on the ECMAScript global object, or the unsigned long IDL type mapping to the Number type in ECMAScript. Web IDL is intended to specify in detail the language used by W3C specifications to define interfaces, and to provide precise conformance requirements for ECMAScript and Java bindings of such interfaces. See InfoQ for the whole story.



» 1 »

发表评论:
昵称:
密码:
主页:
标题:
验证码:  (不区分大小写,请仔细填写,输错需重写评论内容!)

日历 | CALENDAR

«December 2019»
1234567
891011121314
15161718192021
22232425262728
293031
blog名称:World Wide Web Watch
日志总数:193
评论数量:663
留言数量:75
访问次数:5700519
建立时间:2004年10月30日
站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.031 second(s), page refreshed 144336250 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号