jnicklas/capybara — Issue #618: Missing title on a span when using the javascript_driver
Author: ao140505
Created: 2012-01-17 13:48:03+00:00
State: open

I am trying to test tooltips that rely on javascript. The plugin that I'm using requires that I put a title attribute on elements that get a tooltip. In this case, I am dealing with a span.

I could not get my test to work and I finally figured out the problem by simply doing a `puts page.html`. When I run my test with a javascript driver (capybara_webkit or selenium), the span does not have a title. When I run it with the default driver, the span has a title as expected.

I know it is not common to put a title on a span, but it does validate. Anyone know why using the javascript driver would strip attributes from elements?

I looked through the source, but I couldn't find the problem. I'd be happy submit a pull request to fix this if someone could point me in the right direction.