Skip to content

Commit

Permalink
Editorial: URL parsing relies on Blob URL Store lookup
Browse files Browse the repository at this point in the history
As per whatwg/url#277 it cannot and does not
need to use StructuredSerialize.
  • Loading branch information
annevk committed Mar 23, 2017
1 parent 362c931 commit a0a23b9
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -3189,6 +3189,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li>The <dfn data-x-href="https://w3c.github.io/FileAPI/#filelist-section"><code>FileList</code></dfn> interface</li>
<li>The concept of a <code>Blob</code>'s <dfn data-x-href="https://w3c.github.io/FileAPI/#snapshot-state">snapshot state</dfn></li>
<li>The concept of <dfn data-x="file-error-read">read errors</dfn></li>
<li><dfn data-x-href="https://w3c.github.io/FileAPI/#BlobURLStore">Blob URL Store</dfn></li>
</ul>

</dd>
Expand Down Expand Up @@ -8672,13 +8673,6 @@ o.myself = o;</pre>
algorithms without needing to <span>prepare to run script</span> and <span>prepare to run a
callback</span>.</p>

<p class="example"><span data-x="url parser">Parsing</span> URLs can happen at a variety of times
that are not the synchronous result of author code. However, the URL parser only applies
<span>StructuredSerialize</span> to <code>Blob</code> objects, so it is not in danger of running
author code with incorrect <span data-x="concept-entry-everything">entry</span> and <span
data-x="concept-incumbent-everything">incumbent</span> values, and thus it too does not need to
perform these preparation steps.</p>

<p class="example">In contrast, a hypothetical API that used <span>StructuredSerialize</span> to
serialize some author-supplied object periodically, directly from a <span
data-x="concept-task">task</span> on the <span>event loop</span>, would need to ensure it performs
Expand Down Expand Up @@ -22313,8 +22307,7 @@ interface <dfn>HTMLHyperlinkElementUtils</dfn> {
data-x="concept-hyperlink-url-set">set the url</span>.</p>

<p class="note">This is only observable for <code data-x="blob protocol">blob:</code> URLs as
<span data-x="url parser">parsing</span> them involves the <span>StructuredSerialize</span>
abstract operation.</p>
<span data-x="url parser">parsing</span> them involves a <span>Blob URL Store</span> lookup.</p>

<p>An element implementing the <code>HTMLHyperlinkElementUtils</code> mixin has an associated
<!--en-GB--><dfn id="reinitialise-url">reinitialize url</dfn> algorithm, which runs these
Expand Down

0 comments on commit a0a23b9

Please sign in to comment.