mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
When a <SELECT> was rendered on IE9 (or older) via DomUtils.htmlToFragment, the hack we used somehow failed to properly set some attributes; they would show up in innerHTML but not affect property values. eg, SELECTED would show up in an OPTION's innerHTML but option.selected would not be set (nor would the parent SELECT's value or selectedIndex). Fix this by replacing a mergeAttributes call with an explicit attribute copying loop. Also, add the helpers setElementValue and getElementValue to DomUtils, which are used both in the test of this fix and will be used in a future change. Fixes #496.