Please sign in to comment.
Add failing unit test for selected attribute bug
capybara-webkit's driver implements `(un)select_option` by modifying the target node's `selected` attribute directly. The [HTML5 spec] states that this attribute represents the _default selectedness_ of an `<option>` element, so modifying it will necessarily break the behavior of reset buttons in forms. In addition, the existing code leaves this attribute set on existing `<option>` elements, which can put the page into an invalid state. [HTML5 spec]: http://dev.w3.org/html5/spec/Overview.html#the-option-element
- Loading branch information...