lib/capybara/poltergeist/client/agent.coffee in poltergeist-1.9.0 vs lib/capybara/poltergeist/client/agent.coffee in poltergeist-1.10.0
- old
+ new
@@ -167,10 +167,13 @@
visibleText: ->
if this.isVisible()
if @element.nodeName == "TEXTAREA"
@element.textContent
else
- @element.innerText || @element.textContent
+ if @element instanceof SVGElement
+ @element.textContent
+ else
+ @element.innerText
deleteText: ->
range = document.createRange()
range.selectNodeContents(@element)
window.getSelection().removeAllRanges()