Skip to content

Commit

Permalink
Merge pull request #84 from w3c/null-check
Browse files Browse the repository at this point in the history
Null check for detail
  • Loading branch information
npm1 authored Sep 13, 2021
2 parents 57f85f4 + 8a423e3 commit 716cc50
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,13 @@ <h3>The <dfn><a>PerformanceMark</a> Constructor</dfn></h3>
</ol>
</li>
<li>Set <var>entry</var>'s <code>duration</code> attribute to <code>0</code>.</li>
<li>Let <var>record</var> be the result of calling the <a data-cite="HTML/infrastructure.html#structuredserialize">StructuredSerialize</a> algorithm on <var>markOptions</var>'s <a>detail</a>.</li>
<li>Set <var>entry</var>'s <a data-link-for=PerformanceMark>detail</a> to the result of calling the <a data-cite="HTML/infrastructure.html#structureddeserialize">StructuredDeserialize</a> algorithm on <var>record</var> and the <a data-cite="HTML/webappapis.html#concept-current-everything">current realm</a>.</li>
<li>If <var>markOptions</var>'s <a>detail</a> is null, set <var>entry</var>'s <a data-link-for=PerformanceMark>detail</a> to null.</li>
<li>Otherwise:
<ol>
<li>Let <var>record</var> be the result of calling the <a data-cite="HTML/infrastructure.html#structuredserialize">StructuredSerialize</a> algorithm on <var>markOptions</var>'s <a>detail</a>.</li>
<li>Set <var>entry</var>'s <a data-link-for=PerformanceMark>detail</a> to the result of calling the <a data-cite="HTML/infrastructure.html#structureddeserialize">StructuredDeserialize</a> algorithm on <var>record</var> and the <a data-cite="HTML/webappapis.html#concept-current-everything">current realm</a>.</li>
</ol>
</li>
</ol>
</section>
</section>
Expand Down

0 comments on commit 716cc50

Please sign in to comment.