Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat(image objects): clarify how to fetch (closes #443) #459

Merged
merged 1 commit into from
Apr 26, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2140,6 +2140,43 @@ <h2>
to display on the end-user's device or most closely matches the
end-user's preferences.
</p>
<section>
<h3>
Fetching image objects
</h3>
<p>
To <a>fetch</a> an <a>image object</a>, the user agent MUST run the
<dfn>steps to fetch an image object</dfn>. The algorithm takes an
<a>image object</a> and the <var>manifest's URL</var>. It returns a
<a>Response</a>:
</p>
<ol>
<li>Let <var>request</var> be a new <a>Request</a>.
</li>
<li>Set the following properties of <var>request</var>:
<ol>
<li>
<var>url</var> is set to image object's URL.
</li>
<li>
<var>initiator</var> is "<code>manifest</code>".
</li>
<li>
<var>type</var> is "<code>image</code>".
</li>
<li>
<var>cors</var> is "<code>no-cors</code>".
</li>
<li>
<var>referrer</var> is <var>manifest URL</var>.
</li>
</ol>
</li>
<li>Perform a <a>fetch</a> using <var>request</var> and return the
<var>response</var>.
</li>
</ol>
</section>
<section>
<h3>
Content security policy of image objects
Expand Down