Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[e] (0) Add references to HTML spec since structured clone is defined…
… there.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=11589

git-svn-id: http://svn.whatwg.org/webapps@5770 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 11, 2011
1 parent c292511 commit e65984c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
12 changes: 8 additions & 4 deletions complete.html
Expand Up @@ -74817,7 +74817,8 @@ <h4 id=the-storage-interface><span class=secno>11.2.1 </span>The <code><a href=#
key/value pairs, which are sometimes called items. Keys are
strings. Any string (including the empty string) is a valid
key. Values can be any data type supported by the <a href=#structured-clone>structured
clone</a> algorithm.</p>
clone</a> algorithm.
</p>

<p>Each <code><a href=#storage-0>Storage</a></code> object is associated with a list of
key/value pairs when it is created, as defined in the sections on
Expand Down Expand Up @@ -74855,14 +74856,16 @@ <h4 id=the-storage-interface><span class=secno>11.2.1 </span>The <code><a href=#
<p>The <dfn id=dom-storage-getitem title=dom-Storage-getItem><code>getItem(<var title="">key</var>)</code></dfn> method must return a
<a href=#structured-clone>structured clone</a> of the current value associated with
the given <var title="">key</var>. If the given <var title="">key</var> does not exist in the list associated with the
object then this method must return null.</p>
object then this method must return null.
</p>

<p>The <dfn id=dom-storage-setitem title=dom-Storage-setItem><code>setItem(<var title="">key</var>, <var title="">value</var>)</code></dfn> method
must first create a <a href=#structured-clone>structured clone</a> of the given <var title="">value</var>. If this raises an exception, then the
exception must be thrown and the list associated with the object is
left unchanged. If constructing the stuctured clone would involve
constructing a new <code><a href=#imagedata>ImageData</a></code> object, then throw a
<code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception instead.</p>
<code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception instead.
</p>

<!-- ImageData isn't supported because reading such objects is
synchronous, and getData() is synchronous, and therefore if the
Expand Down Expand Up @@ -75097,7 +75100,8 @@ <h4 id=the-storage-event><span class=secno>11.2.4 </span>The <code title=event-s
<a href=#structured-clone>structured clone</a> of the old value of the key in
question, or null if the key is newly added, and its <code title=dom-StorageEvent-newValue><a href=#dom-storageevent-newvalue>newValue</a></code> attribute set to a
<a href=#structured-clone>structured clone</a> of the new value of the key in
question, or null if the key was removed.</p>
question, or null if the key was removed.
</p>

<p>Otherwise, if the event is being fired due to an invocation of
the <code title=dom-Storage-clear><a href=#dom-storage-clear>clear()</a></code> method, the event
Expand Down
24 changes: 20 additions & 4 deletions source
Expand Up @@ -84707,7 +84707,11 @@ interface <dfn>MessagePort</dfn> {
key/value pairs, which are sometimes called items. Keys are
strings. Any string (including the empty string) is a valid
key. Values can be any data type supported by the <span>structured
clone</span> algorithm.</p>
clone</span> algorithm.
<!--END complete--><!--END epub-->
<a href="#refsHTML">[HTML]</a>
<!--START complete--><!--START epub-->
</p>

<p>Each <code>Storage</code> object is associated with a list of
key/value pairs when it is created, as defined in the sections on
Expand Down Expand Up @@ -84751,7 +84755,11 @@ interface <dfn>MessagePort</dfn> {
<span>structured clone</span> of the current value associated with
the given <var title="">key</var>. If the given <var
title="">key</var> does not exist in the list associated with the
object then this method must return null.</p>
object then this method must return null.
<!--END complete--><!--END epub-->
<a href="#refsHTML">[HTML]</a>
<!--START complete--><!--START epub-->
</p>

<p>The <dfn title="dom-Storage-setItem"><code>setItem(<var
title="">key</var>, <var title="">value</var>)</code></dfn> method
Expand All @@ -84760,7 +84768,11 @@ interface <dfn>MessagePort</dfn> {
exception must be thrown and the list associated with the object is
left unchanged. If constructing the stuctured clone would involve
constructing a new <code>ImageData</code> object, then throw a
<code>NOT_SUPPORTED_ERR</code> exception instead.</p>
<code>NOT_SUPPORTED_ERR</code> exception instead.
<!--END complete--><!--END epub-->
<a href="#refsHTML">[HTML]</a>
<!--START complete--><!--START epub-->
</p>

<!-- ImageData isn't supported because reading such objects is
synchronous, and getData() is synchronous, and therefore if the
Expand Down Expand Up @@ -85024,7 +85036,11 @@ interface <span>WindowLocalStorage</span> {
question, or null if the key is newly added, and its <code
title="dom-StorageEvent-newValue">newValue</code> attribute set to a
<span>structured clone</span> of the new value of the key in
question, or null if the key was removed.</p>
question, or null if the key was removed.
<!--END complete--><!--END epub-->
<a href="#refsHTML">[HTML]</a>
<!--START complete--><!--START epub-->
</p>

<p>Otherwise, if the event is being fired due to an invocation of
the <code title="dom-Storage-clear">clear()</code> method, the event
Expand Down

0 comments on commit e65984c

Please sign in to comment.