We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0458ef commit 8ace4f4Copy full SHA for 8ace4f4
common/content/base.js
@@ -67,7 +67,8 @@ function iter(obj) {
67
})();
68
if (isinstance(obj, [HTMLCollection, NodeList]))
69
return (node for (node of obj));
70
- if (obj instanceof NamedNodeMap)
+ if ((typeof NamedNodeMap !== "undefined" && obj instanceof NamedNodeMap) ||
71
+ (typeof MozNamedAttrMap !== "undefined" && obj instanceof MozNamedAttrMap))
72
return (function () {
73
for (let i = 0, len = obj.length; i < len; ++i)
74
yield [obj[i].name, obj[i]];
0 commit comments