Skip to content

Commit b0f1c1c

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 8a9ff69 commit b0f1c1c

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
@@ -8877,9 +8877,10 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
88778877
data-x="xattr-ReflectRange">[ReflectRange]</code>.</p>
88788878

88798879
<p>The <code data-x="xattr-ReflectDefault">[ReflectDefault]</code> <span>extended attribute</span>
8880-
must take an integer or decimal. It must not appear on anything other than an interface member
8881-
attribute with a type of <code data-x="idl-double">double</code>, <code
8882-
data-x="idl-long">long</code>, or <code data-x="idl-unsigned-long">unsigned long</code>.
8880+
must not appear on anything other than an interface member attribute with a type of <code
8881+
data-x="idl-double">double</code>, <code data-x="idl-long">long</code>, or <code
8882+
data-x="idl-unsigned-long">unsigned long</code>. When used on an attribute of type <code
8883+
data-x="idl-double">double</code>, it must take a decimal, otherwise it must take an integer.
88838884
Additionally, it must also only appear alongside <code data-x="xattr-Reflect">[Reflect]</code>,
88848885
<code data-x="xattr-ReflectNonNegative">[ReflectNonNegative]</code>, <code
88858886
data-x="xattr-ReflectPositive">[ReflectPositive]</code>, or <code
@@ -55967,7 +55968,7 @@ interface <dfn interface>HTMLProgressElement</dfn> : <span>HTMLElement</span> {
5596755968
[<span>HTMLConstructor</span>] constructor();
5596855969

5596955970
[<span>CEReactions</span>, <span data-x="xattr-ReflectSetter">ReflectSetter</span>] attribute double <span data-x="dom-progress-value">value</span>;
55970-
[<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>;
55971+
[<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>;
5597155972
readonly attribute double <span data-x="dom-progress-position">position</span>;
5597255973
readonly attribute <span>NodeList</span> <span data-x="dom-lfe-labels">labels</span>;
5597355974
};</code></pre>
@@ -57612,19 +57613,19 @@ form.method === input; // => true</code></pre>
5761257613
<hr>
5761357614

5761457615
<p>The <dfn attribute for="HTMLFormElement"><code data-x="dom-fs-action">action</code></dfn> IDL
57615-
attribute's getter must <span>reflect</span>, <span data-x="treated as a URL">as a URL</span>,
57616-
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
57617-
string, the element's <span>node document</span>'s <span data-x="concept-document-url">URL</span>
57618-
must be returned instead. The <dfn attribute for="HTMLFormElement"><code
57619-
data-x="dom-fs-method">method</code></dfn> and <dfn attribute for="HTMLFormElement"><code
57620-
data-x="dom-fs-enctype">enctype</code></dfn> IDL attributes must <span>reflect</span> the
57621-
respective content attributes of the same name, <span>limited to only known values</span>. The
57622-
<dfn attribute for="HTMLFormElement"><code data-x="dom-fs-encoding">encoding</code></dfn> IDL
57623-
attribute must <span>reflect</span> the <code data-x="attr-fs-enctype">enctype</code> content
57624-
attribute, <span>limited to only known values</span>. The <dfn attribute
57625-
for="HTMLButtonElement,HTMLInputElement"><code data-x="dom-fs-formAction">formAction</code></dfn>
57626-
IDL attribute's getter must <span>reflect</span>, <span data-x="treated as a URL">as a URL</span>,
57627-
the <code
57616+
attribute's getter must <span>reflect</span>, <span data-x="treated as a URL">as a URL</span>, the
57617+
<code data-x="attr-fs-action">action</code> content attribute, except that when the content
57618+
attribute is missing or its value is the empty string, the element's <span>node document</span>'s
57619+
<span data-x="concept-document-url">URL</span> must be returned instead. The <dfn attribute
57620+
for="HTMLFormElement"><code data-x="dom-fs-method">method</code></dfn> and <dfn attribute
57621+
for="HTMLFormElement"><code data-x="dom-fs-enctype">enctype</code></dfn> IDL attributes must
57622+
<span>reflect</span> the respective content attributes of the same name, <span>limited to only
57623+
known values</span>. The <dfn attribute for="HTMLFormElement"><code
57624+
data-x="dom-fs-encoding">encoding</code></dfn> IDL attribute must <span>reflect</span> the <code
57625+
data-x="attr-fs-enctype">enctype</code> content attribute, <span>limited to only known
57626+
values</span>. The <dfn attribute for="HTMLButtonElement,HTMLInputElement"><code
57627+
data-x="dom-fs-formAction">formAction</code></dfn> IDL attribute's getter must
57628+
<span>reflect</span>, <span data-x="treated as a URL">as a URL</span>, the <code
5762857629
data-x="attr-fs-formaction">formaction</code> content attribute, except that when the content
5762957630
attribute is missing or its value is the empty string, the element's <span>node document</span>'s
5763057631
<span data-x="concept-document-url">URL</span> must be returned instead. The <dfn attribute

0 commit comments

Comments
 (0)