Skip to content

Commit

Permalink
dom/document: try #css first in #[]
Browse files Browse the repository at this point in the history
Since IE doesn't support XPath, this is a better choice.
  • Loading branch information
meh committed Jan 26, 2014
1 parent cca09dd commit 095887d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opal/browser/dom/document.rb
Expand Up @@ -38,7 +38,7 @@ def [](what)
}
}

xpath(what).first || css(what).first
css(what).first || xpath(what).first
end

alias at []
Expand Down

0 comments on commit 095887d

Please sign in to comment.