Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fafd2e1

Browse files
annevkdomenic
authored andcommitted
Editorial: link DOMStringMap algorithms
Also remove a note about it only describing a mapping to JavaScript, since that is true for all of IDL. Fixes https://www.w3.org/Bugs/Public/show_bug.cgi?id=28118.
1 parent edb786b commit fafd2e1

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

source

+20-18
Original file line numberDiff line numberDiff line change
@@ -7665,8 +7665,9 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E..
76657665
<div w-nodev>
76667666

76677667
<p>When a <code>DOMStringMap</code> object is instantiated, it is associated with three
7668-
algorithms, one for getting the list of name-value pairs, one for setting names to certain values,
7669-
and one for deleting names.</p>
7668+
algorithms, one for <dfn>getting the list of name-value pairs</dfn>, one for <dfn>setting names to
7669+
certain values</dfn> (given a <var>name</var> and <var>value</var>), and one for <dfn>deleting
7670+
names</dfn> (given a <var>name</var>).</p>
76707671

76717672
<pre class="idl">[OverrideBuiltins]
76727673
interface <dfn>DOMStringMap</dfn> {
@@ -7676,22 +7677,22 @@ interface <dfn>DOMStringMap</dfn> {
76767677
};</pre>
76777678

76787679
<p>The <span>supported property names</span> on a <code>DOMStringMap</code> object at any instant
7679-
are the names of each pair returned from the algorithm for getting the list of name-value pairs at
7680-
that instant, in the order returned.</p>
7680+
are the names of each pair returned from the algorithm for <span>getting the list of name-value
7681+
pairs</span> at that instant, in the order returned.</p>
76817682

7682-
<p>To <dfn data-x="dom-DOMStringMap-namedItem">determine the value of a named property</dfn> <var>name</var> in a <code>DOMStringMap</code>, the user agent must return the value component
7683-
of the name-value pair whose name component is <var>name</var> in the list returned by
7684-
the algorithm for getting the list of name-value pairs.</p>
7683+
<p>To <dfn data-x="dom-DOMStringMap-namedItem">determine the value of a named property</dfn>
7684+
<var>name</var> in a <code>DOMStringMap</code>, the user agent must return the value component of
7685+
the name-value pair whose name component is <var>name</var> in the list returned by the algorithm
7686+
for <span>getting the list of name-value pairs</span>.</p>
76857687

76867688
<p>To <dfn data-x="dom-DOMStringMap-setItem">set</dfn> the value of a named property
7687-
<var>name</var> to value <var>value</var>, the algorithm for setting names to certain values must
7688-
be run, passing <var>name</var> as the name and <var>value</var> as the value.</p>
7689-
7690-
<p>To <dfn data-x="dom-DOMStringMap-removeItem">delete an existing named property</dfn> <var>name</var>, the algorithm for deleting names must be run, passing <var>name</var> as the name.</p>
7689+
<var>name</var> to value <var>value</var>, the algorithm for <span>setting names to certain
7690+
values</span> must be run, passing <var>name</var> as the name and <var>value</var> as the
7691+
value.</p>
76917692

7692-
<p class="note">The <code>DOMStringMap</code> interface definition here is only intended for
7693-
JavaScript environments. Other language bindings will need to define how <code>DOMStringMap</code>
7694-
is to be implemented for those languages.</p>
7693+
<p>To <dfn data-x="dom-DOMStringMap-removeItem">delete an existing named property</dfn>
7694+
<var>name</var>, the algorithm for <span>deleting names</span> must be run, passing
7695+
<var>name</var> as the name.</p>
76957696

76967697
</div>
76977698

@@ -11240,7 +11241,7 @@ translate="no">HTML&lt;/span> markup.&lt;/p></pre>
1124011241

1124111242
<dl>
1124211243

11243-
<dt>The algorithm for getting the list of name-value pairs</dt>
11244+
<dt>The algorithm for <span>getting the list of name-value pairs</span></dt>
1124411245

1124511246
<dd>
1124611247
<ol>
@@ -11265,7 +11266,7 @@ translate="no">HTML&lt;/span> markup.&lt;/p></pre>
1126511266
</ol>
1126611267
</dd>
1126711268

11268-
<dt>The algorithm for setting names to certain values</dt>
11269+
<dt>The algorithm for <span>setting names to certain values</span></dt>
1126911270

1127011271
<dd>
1127111272
<ol>
@@ -11290,7 +11291,7 @@ translate="no">HTML&lt;/span> markup.&lt;/p></pre>
1129011291
</ol>
1129111292
</dd>
1129211293

11293-
<dt>The algorithm for deleting names</dt>
11294+
<dt>The algorithm for <span>deleting names</span></dt>
1129411295

1129511296
<dd>
1129611297
<ol>
@@ -11314,7 +11315,8 @@ translate="no">HTML&lt;/span> markup.&lt;/p></pre>
1131411315
</ol>
1131511316

1131611317
<p class="note">This algorithm will only get invoked by the Web IDL specification for names that
11317-
are given by the earlier algorithm for getting the list of name-value pairs. <ref spec=WEBIDL></p>
11318+
are given by the earlier algorithm for <span>getting the list of name-value pairs</span>. <ref
11319+
spec=WEBIDL></p>
1131811320

1131911321
</dd>
1132011322

0 commit comments

Comments
 (0)