Skip to content

Commit 095887d

Browse files
committed
dom/document: try #css first in #[]
Since IE doesn't support XPath, this is a better choice.
1 parent cca09dd commit 095887d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opal/browser/dom/document.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def [](what)
3838
}
3939
}
4040

41-
xpath(what).first || css(what).first
41+
css(what).first || xpath(what).first
4242
end
4343

4444
alias at []

0 commit comments

Comments
 (0)