Skip to content

Commit b0d8a24

Browse files
committed
Clarify that ReflectDefault must take a decimal when used on a double attribute, otherwise an integer, also clean up the single double usage to actually use a decimal.
1 parent 12f9f22 commit b0d8a24

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

source

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8881,9 +8881,10 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
88818881
data-x="xattr-ReflectRange">[ReflectRange]</code>.</p>
88828882

88838883
<p>The <code data-x="xattr-ReflectDefault">[ReflectDefault]</code> <span>extended attribute</span>
8884-
must take an integer or decimal. It must not appear on anything other than an interface member
8885-
attribute with a type of <code data-x="idl-double">double</code>, <code
8886-
data-x="idl-long">long</code>, or <code data-x="idl-unsigned-long">unsigned long</code>.
8884+
must not appear on anything other than an interface member attribute with a type of <code
8885+
data-x="idl-double">double</code>, <code data-x="idl-long">long</code>, or <code
8886+
data-x="idl-unsigned-long">unsigned long</code>. When used on an attribute of type <code
8887+
data-x="idl-double">double</code>, it must take a decimal, otherwise it must take an integer.
88878888
Additionally, it must also only appear alongside <code data-x="xattr-Reflect">[Reflect]</code>,
88888889
<code data-x="xattr-ReflectNonNegative">[ReflectNonNegative]</code>, <code
88898890
data-x="xattr-ReflectPositive">[ReflectPositive]</code>, or <code
@@ -55551,7 +55552,7 @@ interface <dfn interface>HTMLProgressElement</dfn> : <span>HTMLElement</span> {
5555155552
[<span>HTMLConstructor</span>] constructor();
5555255553

5555355554
[<span>CEReactions</span>, <span data-x="xattr-ReflectSetter">ReflectSetter</span>] attribute double <span data-x="dom-progress-value">value</span>;
55554-
[<span>CEReactions</span>, <span data-x="xattr-ReflectPositive">ReflectPositive</span>, <span data-x="xattr-ReflectDefault">ReflectDefault=1</span>] attribute double <dfn data-x="dom-progress-max">max</dfn>;
55555+
[<span>CEReactions</span>, <span data-x="xattr-ReflectPositive">ReflectPositive</span>, <span data-x="xattr-ReflectDefault">ReflectDefault=1.0</span>] attribute double <dfn data-x="dom-progress-max">max</dfn>;
5555555556
readonly attribute double <span data-x="dom-progress-position">position</span>;
5555655557
readonly attribute <span>NodeList</span> <span data-x="dom-lfe-labels">labels</span>;
5555755558
};</code></pre>
@@ -56983,19 +56984,19 @@ form.method === input; // => true</code></pre>
5698356984
<hr>
5698456985

5698556986
<p>The <dfn attribute for="HTMLFormElement"><code data-x="dom-fs-action">action</code></dfn> IDL
56986-
attribute's getter must <span>reflect</span>, <span data-x="treated as a URL">as a URL</span>,
56987-
the <code data-x="attr-fs-action">action</code> content attribute, except that when the content attribute is missing or its value is the empty
56988-
string, the element's <span>node document</span>'s <span data-x="concept-document-url">URL</span>
56989-
must be returned instead. The <dfn attribute for="HTMLFormElement"><code
56990-
data-x="dom-fs-method">method</code></dfn> and <dfn attribute for="HTMLFormElement"><code
56991-
data-x="dom-fs-enctype">enctype</code></dfn> IDL attributes must <span>reflect</span> the
56992-
respective content attributes of the same name, <span>limited to only known values</span>. The
56993-
<dfn attribute for="HTMLFormElement"><code data-x="dom-fs-encoding">encoding</code></dfn> IDL
56994-
attribute must <span>reflect</span> the <code data-x="attr-fs-enctype">enctype</code> content
56995-
attribute, <span>limited to only known values</span>. The <dfn attribute
56996-
for="HTMLButtonElement,HTMLInputElement"><code data-x="dom-fs-formAction">formAction</code></dfn>
56997-
IDL attribute's getter must <span>reflect</span>, <span data-x="treated as a URL">as a URL</span>,
56998-
the <code
56987+
attribute's getter must <span>reflect</span>, <span data-x="treated as a URL">as a URL</span>, the
56988+
<code data-x="attr-fs-action">action</code> content attribute, except that when the content
56989+
attribute is missing or its value is the empty string, the element's <span>node document</span>'s
56990+
<span data-x="concept-document-url">URL</span> must be returned instead. The <dfn attribute
56991+
for="HTMLFormElement"><code data-x="dom-fs-method">method</code></dfn> and <dfn attribute
56992+
for="HTMLFormElement"><code data-x="dom-fs-enctype">enctype</code></dfn> IDL attributes must
56993+
<span>reflect</span> the respective content attributes of the same name, <span>limited to only
56994+
known values</span>. The <dfn attribute for="HTMLFormElement"><code
56995+
data-x="dom-fs-encoding">encoding</code></dfn> IDL attribute must <span>reflect</span> the <code
56996+
data-x="attr-fs-enctype">enctype</code> content attribute, <span>limited to only known
56997+
values</span>. The <dfn attribute for="HTMLButtonElement,HTMLInputElement"><code
56998+
data-x="dom-fs-formAction">formAction</code></dfn> IDL attribute's getter must
56999+
<span>reflect</span>, <span data-x="treated as a URL">as a URL</span>, the <code
5699957000
data-x="attr-fs-formaction">formaction</code> content attribute, except that when the content
5700057001
attribute is missing or its value is the empty string, the element's <span>node document</span>'s
5700157002
<span data-x="concept-document-url">URL</span> must be returned instead. The <dfn attribute

0 commit comments

Comments
 (0)