forked from thoughtbot/capybara-webkit
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
1 changed file
with
36 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters