Permalink
Browse files

Fix selected attribute

The element <option selected=""> is selected.
  • Loading branch information...
1 parent ca3a956 commit ccfc0309fd16c960f0ac2f707441918c3aab379d @adrianheine adrianheine committed with domenic Mar 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/jsdom/level2/html.js
View
@@ -798,7 +798,7 @@ define('HTMLOptionElement', {
return closest(this, 'FORM');
},
get defaultSelected() {
- return !!this.getAttribute('selected');
+ return this.getAttribute('selected') !== null;
},
set defaultSelected(s) {
if (s) this.setAttribute('selected', 'selected');

0 comments on commit ccfc030

Please sign in to comment.