Skip to content

Commit

Permalink
Invalidate caches for optionEl.selected setter
Browse files Browse the repository at this point in the history
These caches impact selectEl.selectedOptions, so this fixes #2326.

Tests are in web-platform-tests/wpt#12448, which will roll into jsdom shortly.
  • Loading branch information
Zirro authored and domenic committed Aug 18, 2018
1 parent 4b5909c commit f0f12d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/jsdom/living/nodes/HTMLOptionElement-impl.js
Expand Up @@ -90,6 +90,7 @@ class HTMLOptionElementImpl extends HTMLElementImpl {
this._removeOtherSelectedness();
}
this._askForAReset();
this._modified();
}

// TODO this is quite wrong
Expand Down

0 comments on commit f0f12d8

Please sign in to comment.