Skip to content

Commit

Permalink
simplify domintro boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Jun 8, 2020
1 parent d46bd65 commit 9db9276
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -99147,17 +99147,16 @@ interface <dfn>Storage</dfn> {

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

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

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

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

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

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

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

0 comments on commit 9db9276

Please sign in to comment.