Fix empty forms of boolean attributes

```<option selected="">``` and ```<textarea readonly="">``` should be selected and readOnly, respectively. These commits fix that and add tests. See also #492.