Please note the difference between my question and others like this one is that I am looking for a way to do this without using driver methods.
Is there a way to view all the HTML of a given Capybara Element without driver support?
Currently, a plain Capybara element allows you to access the attributes, if you know about them:
# <span class="one" id="two" data="three">
el = find(".klass")
el['class'] #=> "one"
el['id'] #=> "two"
It seems like surely there should be a way to just view the entire set of attributes, but I can't find a way without driver support. Is there a way to get something like this?
el.html #=> <span class=\"one\" id=\"two\" data=\"three\">