<span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">The `value' DOM attribute of HTMLOptionElement is incompatible with the current major browsers.<div><br>
</div><div>The spec says:</div><div><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#dom-option-value" style="color:rgb(29, 30, 206)" target="_blank">http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#dom-option-value</a></div>
<div><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#dom-option-value" style="color:rgb(29, 30, 206)" target="_blank"></a><span style="font-family:sans-serif, 'Droid Sans Fallback';font-size:medium;line-height:21px"> The <dfn title="dom-option-disabled" style="font-weight:bold;font-style:normal"><code style="font-size:inherit;font-family:monospace, 'Droid Sans Fallback';font-variant:normal;color:rgb(255, 69, 0)">disabled</code></dfn>, <dfn title="dom-option-label" style="font-weight:bold;font-style:normal"><code style="font-size:inherit;font-family:monospace, 'Droid Sans Fallback';font-variant:normal;color:rgb(255, 69, 0)">label</code></dfn>, and <dfn title="dom-option-value" style="font-weight:bold;font-style:normal"><code style="font-size:inherit;font-family:monospace, 'Droid Sans Fallback';font-variant:normal;color:rgb(255, 69, 0)">value</code></dfn> DOM attributes must <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#reflect" style="color:rgb(102, 0, 153);background-repeat:initial;background-color:transparent" target="_blank">reflect</a> the respective content</span></div>
<div><span style="font-family:sans-serif, 'Droid Sans Fallback';font-size:medium;line-height:21px"> attributes of the same name.</span><br clear="all"><br></div><div>However .value in IE8, Firefox3.5, Chrome2, Safari4, and Opera10b2 doesn't work so. It returns the value of `value' HTML attribute, or the value of .text DOM attribute if the element doesn't have the `value' HTML attribute or the value of `value' HTML attribute is empty. If we substitute a string to .value DOM attribute, the `value' HTML attribute is updated.</div>
<div><br></div><div>The spec should follow this behavior.</div><div><br>-- <br>TAMURA Kent <br>Software Engineer, Google <br></div></span><br><br><br>