The `value' DOM attribute of HTMLOptionElement is incompatible with the
current major browsers.
The spec says:
http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#dom-option-value
<http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#dom-option-value>
The disabled, label, and value DOM attributes must reflect<http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#reflect> the
respective content
  attributes of the same name.

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.

The spec should follow this behavior.

--
TAMURA Kent
Software Engineer, Google



Reply via email to