为什么 ECMAScript 仍然没有被 W3C 推荐?
理论上,浏览器可以支持多种编程语言来进行网页的客户端脚本编写。实际上,ECMAScript 是唯一在所有浏览器中广泛实现和使用的脚本。所以对于大多数人来说,它是网络不可或缺的一部分。
然而,W3C 从未将其推广为网页脚本编写的推荐标准。尽管客户端交互性变得越来越重要,HTML5 似乎也确实促进了这一点。为什么会这样呢?
- 是为了防止某种编程语言垄断Web平台吗? (显然失败了)
- 是因为 W3C 更喜欢只关注网络的声明性方面吗?
- 或者只是一种政治立场?
In theory browsers could support several programming languages for client-side scripting of web pages. In practice, ECMAScript is the only one widely implemented and used in all browsers. So for most people, it is an integral part of the web.
However, it has never been promoted as a recommendation by the W3C for web page scripting. And HTML5 does seems to promote it either, even though client-side interactivity is becoming more and more important. Why it is the case?
- Is it to prevent a programming language monopoly on the web platform? (obviously failed)
- Is it because the W3C prefers to concentrate ONLY on the declarative side of the web?
- Or simply a political stance?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我将尝试一下:W3C 尝试起草和推荐标准。 ECMA脚本已经是 ECMA 的标准。它不需要重新批准该语言。
与此类似的是 w3c 尝试标准化文档对象模型 (DOM),所有浏览器都通过该模型使用 javascript/ecmascript(或 vbscript 或任何其他客户端脚本语言)与 HTML 页面进行交互。这实际上并不顺利。说实话,航行总比没有好(所以他们一直告诉我)
http://www.w3.org/DOM /
- 奥辛
I'll take a stab at this: W3C tries to draft and recommend standards. ECMAscript is already a standard, from ECMA. It doesn't need to re-ratify the language.
Something close to this is the w3c's attempts to standardize the document object model (DOM) by which all browsers interact with a HTML page using javascript/ecmascript (or vbscript or any other client-side scripting language.) This hasn't actually been smooth sailing tbh, but it's better than nothing (so they keep telling me)
http://www.w3.org/DOM/
-Oisin