Skip to content

Commit

Permalink
support: fix Attr.isId check
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Feb 6, 2014
1 parent cba801a commit dc146cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opal/browser/support.rb
Expand Up @@ -103,10 +103,10 @@ def self.supports?(feature)

when 'Attr.isId'
%x{
var div = document.createElement('div')
var div = document.createElement('div');
div.setAttribute('id', 'xxxxxxxxxxxxx');
return typeof(div.attributes.item('id').isId) !== "undefined";
return typeof(div.attributes['id'].isId) !== "undefined";
}

when 'Element.addBehavior'
Expand Down

0 comments on commit dc146cd

Please sign in to comment.