在DOM4中不再是这种情况。为了使Attr的实现达到规范要求,正在努力将其更改为不再继承Node。您不应该对Attr对象使用任何Node属性或方法。[0].nodeValue);
// Working too but deprecated method for Attr since it doesn't inherit from Node in DOM4
我正在尝试创建一个使用Modernizr.js来检测的测试。在现代程序文档中,被称为前缀。我试着这样做: test: Modernizr.prefixed('MutationObserver', window), nope: ['/js/polyfill_nope.js']但显然,这是行不通的。我得到了一个TypeError: f.bind is not a function,我非常确定前缀字符串不是MutationOb