Skip to content

Commit 25b7044

Browse files
authored
Fix the datatype info in HTMLOptionElement doc (mdn#4012)
1 parent 32fd0a0 commit 25b7044

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

files/en-us/web/api/htmloptionelement/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ <h2 id="Properties">Properties</h2>
2020

2121
<dl>
2222
<dt>{{domxref("HTMLOptionElement.defaultSelected")}}</dt>
23-
<dd>Is a {{domxref("Boolean")}} that contains the initial value of the {{htmlattrxref("selected", "option")}} HTML attribute, indicating whether the option is selected by default or not.</dd>
23+
<dd>Has a value of either <code>true</code> or <code>false</code> that shows the initial value of the {{htmlattrxref("selected", "option")}} HTML attribute, indicating whether the option is selected by default or not.</dd>
2424

2525
<dt>{{domxref("HTMLOptionElement.disabled")}}</dt>
26-
<dd>Is a {{domxref("Boolean")}} representing the value of the {{htmlattrxref("disabled", "option")}} HTML attribute, which indicates that the option is unavailable to be selected. An option can also be disabled if it is a child of an {{HTMLElement("optgroup")}} element that is disabled.</dd>
26+
<dd>Has a value of either <code>true</code> or <code>false</code> representing the value of the {{htmlattrxref("disabled", "option")}} HTML attribute, which indicates that the option is unavailable to be selected. An option can also be disabled if it is a child of an {{HTMLElement("optgroup")}} element that is disabled.</dd>
2727

2828
<dt>{{domxref("HTMLOptionElement.form")}} {{readonlyInline}}</dt>
2929
<dd>Is a {{domxref("HTMLFormElement")}} representing the same value as the <code>form</code> of the corresponding {{HTMLElement("select")}} element, if the option is a descendant of a {{HTMLElement("select")}} element, or null if none is found. </dd>
@@ -35,7 +35,7 @@ <h2 id="Properties">Properties</h2>
3535
<dd>Is a {{domxref("DOMString")}} that reflects the value of the {{htmlattrxref("label", "option")}} HTML attribute, which provides a label for the option. If this attribute isn't specifically set, reading it returns the element's text content.</dd>
3636

3737
<dt>{{domxref("HTMLOptionElement.selected")}}</dt>
38-
<dd>Is a {{domxref("Boolean")}} that indicates whether the option is currently selected.</dd>
38+
<dd>Has a value of either <code>true</code> or <code>false</code> that indicates whether the option is currently selected.</dd>
3939
<dt>{{domxref("HTMLOptionElement.text")}}</dt>
4040
<dd>Is a {{domxref("DOMString")}} that contains the text content of the element.</dd>
4141
<dt>{{domxref("HTMLOptionElement.value")}}</dt>

0 commit comments

Comments
 (0)