Skip to content

Commit

Permalink
Use StructuredSerializeForStorage
Browse files Browse the repository at this point in the history
As defined by and discussed in whatwg/html#2518.
  • Loading branch information
annevk committed May 14, 2017
1 parent 2ab2429 commit 8323d18
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions notifications.bs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ these steps:
<code>TypeError</code> exception.

<li><p>Set <var>notification</var>'s <a for=notification>data</a> to
<span>StructuredSerialize</span>(<var>options</var>'s <code>data</code>). Rethrow any exceptions.
<a abstract-op>StructuredSerializeForStorage</a>(<var>options</var>'s <code>data</code>). Rethrow
any exceptions.

<li><p>Set <var>notification</var>'s <a for=notification>title</a> to <var>title</var>.

Expand Down Expand Up @@ -892,7 +893,7 @@ the <a>notification</a>'s <a for=notification>renotify preference flag</a>.
return the <a>notification</a>'s <a for=notification>require interaction preference flag</a>.

<p>The <dfn attribute for=Notification><code>data</code></dfn> attribute's getter must return
<span>StructuredDeserialize</span>(<a>notification</a>'s <a for=notification>data</a>,
<a abstract-op>StructuredDeserialize</a>(<a>notification</a>'s <a for=notification>data</a>,
<a>context object</a>'s <a>relevant Realm</a>). If this throws an exception, then return null.
<!-- Relies on SameObject becoming Cached as proposed -->

Expand Down

0 comments on commit 8323d18

Please sign in to comment.