set value property explicitly for "option" element even if value is empty

This commit is contained in:
everdimension committed 2016-03-09 19:21:35 +03:00
1 parent f9a08b0e9c
commit ea15fa31b6
1 file changed
+5
@@ -179,6 +179,11 @@ var DOMPropertyOperations = {
// Contrary to `setAttribute`, object properties are properly
// `toString`ed by IE8/9.
node[propName] = value;
} else if (node.nodeName && node.nodeName.toLowerCase() === 'option' &&
!node.hasAttribute('value')) {
// set empty "value" attribute to OPTION element
// if it is provided, but not yet set
node[propName] = value;
}
} else {
var attributeName = propertyInfo.attributeName;