Element.Methods.Simulated

Element.Methods.Simulated 用来在非标准的浏览器上模拟其不具备的 HTMLElement 方法,这样就可以在 已扩展 的元素上调用这些方法,就像这些浏览器已经实现了这些方法一样。

方法

hasAttribute
simulated

hasAttribute(element, attribute) -> Boolean

为不存在该方法的浏览器(Internet Explorer 6 或 7)模拟规范中指定的 DOM 方法 hasAttribute