Skip to content

Commit e87f4b7

Browse files
Fix a capability check that raised an exception in IE8.
1 parent 0df1298 commit e87f4b7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/prototype/dom/dom.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2395,8 +2395,7 @@
23952395
var checkbox = document.createElement('<input type="checkbox">');
23962396
checkbox.checked = true;
23972397
var node = checkbox.getAttributeNode('checked');
2398-
var buggy = !node.specified;
2399-
return !node.specified;
2398+
return !node || !node.specified;
24002399
})();
24012400

24022401
function hasAttribute(element, attribute) {

0 commit comments

Comments
 (0)