Skip to content
Permalink
Browse files

[] (0) Make HTMLOptionElement.text read-write.

git-svn-id: http://svn.whatwg.org/webapps@3529 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 3, 2009
1 parent bd69700 commit cdde974b11920ab2fa419e329f6d2101752860b7
Showing with 10 additions and 6 deletions.
  1. +5 −3 index
  2. +5 −3 source
8 index
attribute boolean <a href=#dom-option-selected title=dom-option-selected>selected</a>;
attribute DOMString <a href=#dom-option-value title=dom-option-value>value</a>;

readonly attribute DOMString <a href=#dom-option-text title=dom-option-text>text</a>;
attribute DOMString <a href=#dom-option-text title=dom-option-text>text</a>;
readonly attribute long <a href=#dom-option-index title=dom-option-index>index</a>;
};</pre>
</dd>
attribute must return the element's <a href=#concept-option-index title=concept-option-index>index</a>.</p>

<p>The <dfn id=dom-option-text title=dom-option-text><code>text</code></dfn> DOM
attribute must return the same value as the <code>textContent</code>
DOM attribute on the element.</p>
attribute, on getting, must return the same value as the
<code>textContent</code> DOM attribute on the element, and on
setting, must act as if the <code>textContent</code> DOM attribute
on the element had been set to the new value.</p>

<p>The <dfn id=dom-option-form title=dom-option-form><code>form</code></dfn> DOM
attribute's behavior depends on whether the <code><a href=#the-option-element>option</a></code>
8 source
attribute boolean <span title="dom-option-selected">selected</span>;
attribute DOMString <span title="dom-option-value">value</span>;

readonly attribute DOMString <span title="dom-option-text">text</span>;
attribute DOMString <span title="dom-option-text">text</span>;
readonly attribute long <span title="dom-option-index">index</span>;
};</pre>
</dd>
title="concept-option-index">index</span>.</p>

<p>The <dfn title="dom-option-text"><code>text</code></dfn> DOM
attribute must return the same value as the <code>textContent</code>
DOM attribute on the element.</p>
attribute, on getting, must return the same value as the
<code>textContent</code> DOM attribute on the element, and on
setting, must act as if the <code>textContent</code> DOM attribute
on the element had been set to the new value.</p>

<p>The <dfn title="dom-option-form"><code>form</code></dfn> DOM
attribute's behavior depends on whether the <code>option</code>

0 comments on commit cdde974

Please sign in to comment.
You can’t perform that action at this time.