weavejester/hiccup — pull request #50 by emezeske (2012-05-22 03:09:20+00:00)
Title: Generate correct markup for selected options.

Previously, each
had a "selected=..." attribute, with its value set to true or false depending on whether it was supposed to be selected. Browsers interpret this to mean that we want them all to be selected. The correct behavior is to leave out the "selected" attribute for all but the element that is to be selected.

Note that I also amended the tests to make sure that this works properly.