为什么 ECMAScript 仍然没有被 W3C 推荐?

发布于 2024-09-15 23:56:28 字数 280 浏览 14 评论 0原文

理论上,浏览器可以支持多种编程语言来进行网页的客户端脚本编写。实际上,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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

‘画卷フ 2024-09-22 23:56:28

我将尝试一下: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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文