Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Using the Javascript naming conventions on the innerHTML accessors me…

…thods
  • Loading branch information...
commit 32db848231d403df20b7c027665f52e5cb8273c0 1 parent a2748b0
@carloslopes carloslopes authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/capybara/webkit/node.rb
  2. +2 −2 src/capybara.js
View
4 lib/capybara/webkit/node.rb
@@ -25,11 +25,11 @@ def value
end
def inner_html
- invoke 'get_innerHTML'
+ invoke 'getInnerHTML'
end
def inner_html=(value)
- invoke 'set_innerHTML', value
+ invoke 'setInnerHTML', value
end
def set(value)
View
4 src/capybara.js
@@ -168,11 +168,11 @@ Capybara = {
return this.nodes[index].value;
},
- get_innerHTML: function(index) {
+ getInnerHTML: function(index) {
return this.nodes[index].innerHTML;
},
- set_innerHTML: function(index, value) {
+ setInnerHTML: function(index, value) {
this.nodes[index].innerHTML = value;
return true;
},
Please sign in to comment.
Something went wrong with that request. Please try again.