Javascript UndoManager浏览器支持 [英] Javascript UndoManager Browser Support

查看:126
本文介绍了Javascript UndoManager浏览器支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HTML5规范提到了一个UndoManager,可用于查询用户编辑过的文档的先前状态( http://www.whatwg.org/specs/web-apps/current-work/#undomanager )。有没有浏览器支持这个?浏览器有没有希望支持它?

The HTML5 spec mentions an UndoManager that can be used to query the previous state of a document that's been edited by a user ( http://www.whatwg.org/specs/web-apps/current-work/#undomanager ). Do any browsers support this? Is there any hope of browsers ever supporting it?

推荐答案

您可以通过将浏览器导航到 HTML5Test.com 。您还可以通过以下方式对其进行测试(如果存在则使用它),方法如下: :

You can test your own browsers by navigating them to HTML5Test.com. You can also test for it on your page (and then use it if it exists) by doing the following:

return typeof UndoManager !== 'undefined';

目前支持它的浏览器是有限的。

The browsers that currently support it are limited.

否支持:Chrome 6.0,IE 8,FF 3.6

No Support: Chrome 6.0, IE 8, FF 3.6

Browser       Score (160)   UndoManager Support
--------------------------------------
IE8           19            no
FF3.6         101           no
Chrome 6      142           no
Safari 4.0.5  70            no
Opera 10.53   102           no

Chrome,Firefox和Opera在整体HTML5支持方面得分很高。因此,UndoManager支持可能即将推出。 Safari已经很快承诺提供完整的HTML5支持。 IE9应该更专注于网络标准。

Chrome, Firefox, and Opera score well on overall HTML5 support. So, UndoManager support may be coming soon. Safari has promised full HTML5 support "soon", as well. IE9 is supposed to be more focused on web standards.

所以,目前它看起来并不正确,但我想会有3-4个主流浏览器在不久的将来支持。

So, it doesn't look right at this moment, but I imagine there will be 3-4 major browsers with support in the near future.

这篇关于Javascript UndoManager浏览器支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆