Skip to content

Commit 9db9276

Browse files
committed
simplify domintro boxes
1 parent d46bd65 commit 9db9276

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

source

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99147,17 +99147,16 @@ interface <dfn>Storage</dfn> {
9914799147

9914899148
<dl class="domintro">
9914999149
<dt><var>storage</var> . <code subdfn data-x="dom-Storage-length">length</code></dt>
99150-
<dd><p>Returns the number of key/value pairs currently present in the list associated with the
99151-
object.</p></dd>
99150+
<dd><p>Returns the number of key/value pairs.</p></dd>
9915299151

9915399152
<dt><var>storage</var> . <code subdfn data-x="dom-Storage-key">key</code> ( <var>n</var> )</dt>
99154-
<dd><p>Returns the name of the <var>n</var>th key in the list, or null if <var>n</var> is greater
99155-
than or equal to the number of key/value pairs in the object.</p></dd>
99153+
<dd><p>Returns the name of the <var>n</var>th key, or null if <var>n</var> is greater than or
99154+
equal to the number of key/value pairs.</p></dd>
9915699155

9915799156
<dt><var>value</var> = <var>storage</var> . <code subdfn data-x="dom-Storage-getItem">getItem</code> ( <var>key</var> )</dt>
9915899157
<dt><var>value</var> = <var>storage</var>[<var>key</var>]</dt>
9915999158
<dd><p>Returns the current value associated with the given <var>key</var>, or null if the given
99160-
<var>key</var> does not exist in the list associated with the object.</p></dd>
99159+
<var>key</var> does not exist.</p></dd>
9916199160

9916299161
<dt><var>storage</var> . <code subdfn data-x="dom-Storage-setItem">setItem</code> ( <var>key</var>, <var>value</var> )</dt>
9916399162
<dt><var>storage</var>[<var>key</var>] = <var>value</var></dt>
@@ -99176,16 +99175,16 @@ interface <dfn>Storage</dfn> {
9917699175
<dt><var>storage</var> . <code subdfn data-x="dom-Storage-removeItem">removeItem</code> ( <var>key</var> )</dt>
9917799176
<dt><code>delete</code> <var>storage</var>[<var>key</var>]</dt>
9917899177
<dd>
99179-
<p>Removes the key/value pair with the given <var>key</var> from the list associated with the
99180-
object, if a key/value pair with the given <var>key</var> exists.</p>
99178+
<p>Removes the key/value pair with the given <var>key</var>, if a key/value pair with the given
99179+
<var>key</var> exists.</p>
9918199180

9918299181
<p>Dispatches a <code data-x="event-storage">storage</code> event on <code>Window</code> objects
9918399182
holding an equivalent <code>Storage</code> object.</p>
9918499183
</dd>
9918599184

9918699185
<dt><var>storage</var> . <code subdfn data-x="dom-Storage-clear">clear</code>()</dt>
9918799186
<dd>
99188-
<p>Empties the list associated with the object of all key/value pairs, if there are any.</p>
99187+
<p>Removes all key/value pairs, if there are any.</p>
9918999188

9919099189
<p>Dispatches a <code data-x="event-storage">storage</code> event on <code>Window</code> objects
9919199190
holding an equivalent <code>Storage</code> object.</p>

0 commit comments

Comments
 (0)