Skip to content

Commit

Permalink
[] (0) URLify the 'address of the chosen media resource' concept and …
Browse files Browse the repository at this point in the history
…related parts.

git-svn-id: http://svn.whatwg.org/webapps@1802 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 25, 2008
1 parent 01c5b14 commit dd45edd
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 33 deletions.
41 changes: 23 additions & 18 deletions index
Expand Up @@ -17382,15 +17382,14 @@ the time Marco had stuck his tongue out...&lt;/p></pre>
<li>
<p>Let the <var title="">chosen resource's pixel ratio override</var> be
<i>none</i>.
</li>
<!-- XXXURL XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \(URI\|IRI\|URL\) -->
<!-- XXXURL pass the attribute value to the last step -->

<li>
<p>If the <a href="#media7">media element</a> has a <code
title=attr-media-src><a href="#src7">src</a></code>, then the address
given in that attribute is the address of the <a href="#media10">media
resource</a>; jump to the last step.
title=attr-media-src><a href="#src7">src</a></code> attribute, then <a
href="#resolve" title="resolve a url">resolve</a> the <a
href="#url">URL</a> given in that attribute. If that is successful, then
the resulting <a href="#absolute">absolute URL</a> is the address of the
<a href="#media10">media resource</a>; jump to the last step.

<li>
<p>Otherwise, let <var title="">candidate</var> be the first <code><a
Expand Down Expand Up @@ -17418,6 +17417,11 @@ the time Marco had stuck his tongue out...&lt;/p></pre>
<li>the <var title="">candidate</var> element has no <code
title=attr-source-src><a href="#src5">src</a></code> attribute, or

<li><a href="#resolve" title="resolve a url">resolving</a> the <a
href="#url">URL</a> given by the <var title="">candidate</var>
element's <code title=attr-source-src><a href="#src5">src</a></code>
attribute fails, or

<li>the <var title="">candidate</var> element has a <code
title=attr-source-type><a href="#type8">type</a></code> attribute and
that attribute's value, when parsed as a MIME type, does not represent
Expand All @@ -17434,11 +17438,12 @@ the time Marco had stuck his tongue out...&lt;/p></pre>

<p>...then the <var title="">candidate</var> is not suitable; go to the
next step.</p>
<!-- XXXURL pass the attribute value to the last step -->
<p>Otherwise, the address given in that <var title="">candidate</var>
element's <code title=attr-source-src><a href="#src5">src</a></code>
attribute is the address of the <a href="#media10">media resource</a>;
jump to the last step.</p>

<p>Otherwise, the result of <a href="#resolve" title="resolve a
url">resolving</a> the <a href="#url">URL</a> given in that <var
title="">candidate</var> element's <code title=attr-source-src><a
href="#src5">src</a></code> attribute is the address of the <a
href="#media10">media resource</a>; jump to the last step.</p>

<li>
<p>Let <var title="">candidate</var> be the next <code><a
Expand All @@ -17452,23 +17457,22 @@ the time Marco had stuck his tongue out...&lt;/p></pre>

<li>
<p>There is no <a href="#media10">media resource</a>. Abort these steps.
</li>
<!-- XXXURL resolve the url of the attribute value passed to this step here -->
<!-- XXXURL define "address of the chosen media resource" and make sure the next paragraph uses it -->

<li>
<p>Let the address of the <dfn id=chosen>chosen media resource</dfn> be
the one that was found before jumping to this step, and let its <dfn
id=pixel0>pixel ratio override</dfn> be the value of the <var
title="">chosen resource's pixel ratio override</var>.
the <a href="#absolute">absolute URL</a> that was found before jumping
to this step, and let its <dfn id=pixel0>pixel ratio override</dfn> be
the value of the <var title="">chosen resource's pixel ratio
override</var>.
</ol>

<p>The <dfn id=currentsrc
title=dom-media-currentSrc><code>currentSrc</code></dfn> DOM attribute
must return the empty string if the <a href="#media7">media element</a>'s
<code title=dom-media-networkState><a
href="#networkstate">networkState</a></code> has the value <a
href="#empty" title=dom-media-EMPTY>EMPTY</a>, and the address of the <a
href="#empty" title=dom-media-EMPTY>EMPTY</a>, and the <a
href="#absolute">absolute URL</a> that is the address of the <a
href="#chosen">chosen media resource</a> otherwise.

<h5 id=network0><span class=secno>4.7.10.3. </span>Network states</h5>
Expand Down Expand Up @@ -19612,6 +19616,7 @@ the time Marco had stuck his tongue out...&lt;/p></pre>

<p class=note>A future version of this specification will probably define a
<code>3d</code> context (probably based on the OpenGL ES API).</p>
<!-- XXXURL XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \(URI\|IRI\|URL\) -->
<!-- XXXURL data: URIs? -->

<p>The <dfn id=todataurl
Expand Down
35 changes: 20 additions & 15 deletions source
Expand Up @@ -15141,13 +15141,12 @@ the time Marco had stuck his tongue out...&lt;/p></pre>
<li><p>Let the <var title="">chosen resource's pixel ratio
override</var> be <i>none</i>.</p></li>

<!-- XXXURL XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \(URI\|IRI\|URL\) -->

<!-- XXXURL pass the attribute value to the last step -->
<li><p>If the <span>media element</span> has a <code
title="attr-media-src">src</code>, then the address given in that
attribute is the address of the <span>media resource</span>; jump
to the last step.</p></li>
title="attr-media-src">src</code> attribute, then <span
title="resolve a url">resolve</span> the <span>URL</span> given in
that attribute. If that is successful, then the resulting
<span>absolute URL</span> is the address of the <span>media
resource</span>; jump to the last step.</p></li>

<li><p>Otherwise, let <var title="">candidate</var> be the first
<code>source</code> element child in the <span>media
Expand All @@ -15174,6 +15173,11 @@ the time Marco had stuck his tongue out...&lt;/p></pre>
<li>the <var title="">candidate</var> element has no <code
title="attr-source-src">src</code> attribute, or</li>

<li><span title="resolve a url">resolving</span> the
<span>URL</span> given by the <var title="">candidate</var>
element's <code title="attr-source-src">src</code> attribute
fails, or</li>

<li>the <var title="">candidate</var> element has a <code
title="attr-source-type">type</code> attribute and that
attribute's value, when parsed as a MIME type, does not represent
Expand All @@ -15193,8 +15197,8 @@ the time Marco had stuck his tongue out...&lt;/p></pre>
<p>...then the <var title="">candidate</var> is not suitable; go
to the next step.</p>

<!-- XXXURL pass the attribute value to the last step -->
<p>Otherwise, the address given in that <var
<p>Otherwise, the result of <span title="resolve a
url">resolving</span> the <span>URL</span> given in that <var
title="">candidate</var> element's <code
title="attr-source-src">src</code> attribute is the address of the
<span>media resource</span>; jump to the last step.</p>
Expand All @@ -15212,12 +15216,11 @@ the time Marco had stuck his tongue out...&lt;/p></pre>
<li><p>There is no <span>media resource</span>. Abort these
steps.</p></li>

<!-- XXXURL resolve the url of the attribute value passed to this step here -->
<!-- XXXURL define "address of the chosen media resource" and make sure the next paragraph uses it -->
<li><p>Let the address of the <dfn>chosen media resource</dfn> be
the one that was found before jumping to this step, and let its
<dfn>pixel ratio override</dfn> be the value of the <var
title="">chosen resource's pixel ratio override</var>.</p></li>
the <span>absolute URL</span> that was found before jumping to this
step, and let its <dfn>pixel ratio override</dfn> be the value of
the <var title="">chosen resource's pixel ratio
override</var>.</p></li>

</ol>

Expand All @@ -15226,8 +15229,9 @@ the time Marco had stuck his tongue out...&lt;/p></pre>
attribute must return the empty string if the <span>media
element</span>'s <code
title="dom-media-networkState">networkState</code> has the value
<span title="dom-media-EMPTY">EMPTY</span>, and the address of the
<span>chosen media resource</span> otherwise.</p>
<span title="dom-media-EMPTY">EMPTY</span>, and the <span>absolute
URL</span> that is the address of the <span>chosen media
resource</span> otherwise.</p>



Expand Down Expand Up @@ -17101,6 +17105,7 @@ the time Marco had stuck his tongue out...&lt;/p></pre>
define a <code>3d</code> context (probably based on the OpenGL ES
API).</p>

<!-- XXXURL XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \(URI\|IRI\|URL\) -->

<!-- XXXURL data: URIs? -->
<p>The <dfn
Expand Down

0 comments on commit dd45edd

Please sign in to comment.