Skip to content
Permalink
Browse files

[giow] (2) Allow data: URLs to be given download='' attribute names.

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=21505
Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@7873 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed May 30, 2013
1 parent 63e3104 commit e00922c5de69c7b3669ef3428b3cded3fc76907e
Showing with 37 additions and 38 deletions.
  1. +12 −12 complete.html
  2. +12 −12 index
  3. +13 −14 source
then let <var title="">filename</var> have the value specified by
the header, and jump to the step labeled <i>sanitize</i> below. <a href=#refsRFC6266>[RFC6266]</a></li>

<li><p>Let <var title="">resource origin</var> be the
<a href=#origin>origin</a> of the resource being downloaded.</li>

<li><p>Let <var title="">interface origin</var> be the
<a href=#origin>origin</a> of the <code><a href=#document>Document</a></code> in which the <a href=#downloading-hyperlinks title="downloading hyperlinks">download</a> or
<a href=#navigate>navigate</a> action resulting in the download was
initiated, if any.</li>

<li><p>If there is no <var title="">interface origin</var>, then
let <var title="">trusted operation</var> be true. Otherwise, let
<var title="">trusted operation</var> be true if <var title="">resource origin</var> is the <a href=#same-origin>same origin</a> as
<var title="">interface origin</var>, and false otherwise.</li>
<li><p>Let <var title="">interface origin</var> be the <a href=#origin>origin</a> of the
<code><a href=#document>Document</a></code> in which the <a href=#downloading-hyperlinks title="downloading hyperlinks">download</a> or
<a href=#navigate>navigate</a> action resulting in the download was initiated, if any.</li>

<li><p>Let <var title="">resource origin</var> be the <a href=#origin>origin</a> of the URL of the
resource being downloaded, unless that URL's <a href=#concept-url-scheme title=concept-url-scheme>scheme</a>
component is <code title="">data</code>, in which case let <var title="">resource origin</var> be
the same as the <var title="">interface origin</var>, if any.</li>

<li><p>If there is no <var title="">interface origin</var>, then let <var title="">trusted
operation</var> be true. Otherwise, let <var title="">trusted operation</var> be true if <var title="">resource origin</var> is the <a href=#same-origin>same origin</a> as <var title="">interface
origin</var>, and false otherwise.</li>

<li><p>If <var title="">trusted operation</var> is true and the <!-- Content-Disposition: *; filename="" overrides download="" for same-origin -->
resource has a <code title=http-content-disposition>Content-Disposition</code> header
24 index
then let <var title="">filename</var> have the value specified by
the header, and jump to the step labeled <i>sanitize</i> below. <a href=#refsRFC6266>[RFC6266]</a></li>

<li><p>Let <var title="">resource origin</var> be the
<a href=#origin>origin</a> of the resource being downloaded.</li>

<li><p>Let <var title="">interface origin</var> be the
<a href=#origin>origin</a> of the <code><a href=#document>Document</a></code> in which the <a href=#downloading-hyperlinks title="downloading hyperlinks">download</a> or
<a href=#navigate>navigate</a> action resulting in the download was
initiated, if any.</li>

<li><p>If there is no <var title="">interface origin</var>, then
let <var title="">trusted operation</var> be true. Otherwise, let
<var title="">trusted operation</var> be true if <var title="">resource origin</var> is the <a href=#same-origin>same origin</a> as
<var title="">interface origin</var>, and false otherwise.</li>
<li><p>Let <var title="">interface origin</var> be the <a href=#origin>origin</a> of the
<code><a href=#document>Document</a></code> in which the <a href=#downloading-hyperlinks title="downloading hyperlinks">download</a> or
<a href=#navigate>navigate</a> action resulting in the download was initiated, if any.</li>

<li><p>Let <var title="">resource origin</var> be the <a href=#origin>origin</a> of the URL of the
resource being downloaded, unless that URL's <a href=#concept-url-scheme title=concept-url-scheme>scheme</a>
component is <code title="">data</code>, in which case let <var title="">resource origin</var> be
the same as the <var title="">interface origin</var>, if any.</li>

<li><p>If there is no <var title="">interface origin</var>, then let <var title="">trusted
operation</var> be true. Otherwise, let <var title="">trusted operation</var> be true if <var title="">resource origin</var> is the <a href=#same-origin>same origin</a> as <var title="">interface
origin</var>, and false otherwise.</li>

<li><p>If <var title="">trusted operation</var> is true and the <!-- Content-Disposition: *; filename="" overrides download="" for same-origin -->
resource has a <code title=http-content-disposition>Content-Disposition</code> header
27 source
the header, and jump to the step labeled <i>sanitize</i> below. <a
href="#refsRFC6266">[RFC6266]</a></p></li>

<li><p>Let <var title="">resource origin</var> be the
<span>origin</span> of the resource being downloaded.</p></li>

<li><p>Let <var title="">interface origin</var> be the
<span>origin</span> of the <code>Document</code> in which the <span
title="downloading hyperlinks">download</span> or
<span>navigate</span> action resulting in the download was
initiated, if any.</p></li>

<li><p>If there is no <var title="">interface origin</var>, then
let <var title="">trusted operation</var> be true. Otherwise, let
<var title="">trusted operation</var> be true if <var
title="">resource origin</var> is the <span>same origin</span> as
<var title="">interface origin</var>, and false otherwise.</p></li>
<li><p>Let <var title="">interface origin</var> be the <span>origin</span> of the
<code>Document</code> in which the <span title="downloading hyperlinks">download</span> or
<span>navigate</span> action resulting in the download was initiated, if any.</p></li>

<li><p>Let <var title="">resource origin</var> be the <span>origin</span> of the URL of the
resource being downloaded, unless that URL's <span title="concept-url-scheme">scheme</span>
component is <code title="">data</code>, in which case let <var title="">resource origin</var> be
the same as the <var title="">interface origin</var>, if any.</p></li>

<li><p>If there is no <var title="">interface origin</var>, then let <var title="">trusted
operation</var> be true. Otherwise, let <var title="">trusted operation</var> be true if <var
title="">resource origin</var> is the <span>same origin</span> as <var title="">interface
origin</var>, and false otherwise.</p></li>

<li><p>If <var title="">trusted operation</var> is true and the <!-- Content-Disposition: *; filename="" overrides download="" for same-origin -->
resource has a <code

0 comments on commit e00922c

Please sign in to comment.
You can’t perform that action at this time.