Skip to content

Commit

Permalink
Fix: parsing image purpose (closes #513, #511)
Browse files Browse the repository at this point in the history
* When purpose is invalid, return set with "any" instead of undefined (fixes #513).
* Parse "purpose" when parsing an image (fixes #511).
  • Loading branch information
mounirlamouri authored and Marcos Cáceres committed Nov 3, 2016
1 parent 12691c2 commit 9cdfcfa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2370,7 +2370,9 @@ <h3>
<li>If <var>type</var> is not "<code>undefined</code>", <a>issue
a developer warning</a> that the type is unsupported.
</li>
<li>Return <code>undefined</code>.
<li>Add "any" to <var>purpose</var>.
</li>
<li>Return <var>purpose</var>.
</li>
</ol>
</li>
Expand Down Expand Up @@ -2625,6 +2627,11 @@ <h3>
<var>image</var>'s <code>sizes</code> property to be
<var>sizes</var>.
</li>
<li>Set <var>image</var>'s <code>purpose</code> property to be
the the result of running the <a>steps for processing a
<code>purpose</code> member of an image</a> passing
<var>potential image</var>.
</li>
<li>Append <var>image</var> to <var>images</var>.
</li>
</ol>
Expand Down

0 comments on commit 9cdfcfa

Please sign in to comment.