Skip to content

Commit

Permalink
removed altname (closes #73)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres authored and marcoscaceres-remote committed Feb 15, 2014
1 parent cf87578 commit f07a1d7
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ <h3>
<pre class="example highlight json" title="typical manifest">
{
"name": "Example",
"altname": "The Example App 2.0",
"url": "/start.html",
"mode": "standalone",
"icons": [{
Expand Down Expand Up @@ -210,7 +209,7 @@ <h2>
</p>
<section>
<h3>
<code title="">name</code> and <code>altname</code> member
<code title="">name</code> member
</h3>
<p>
The <dfn id="member-name"><code>name</code></dfn> is a string that
Expand All @@ -219,24 +218,18 @@ <h3>
underneath an icon).
</p>
<p>
The <dfn id="member-alt-name"><code>altname</code></dfn> is a string
that represents an alternative name of the application, such as the
name under which the application is sold or marketed.
</p>
<p>
The <dfn>steps for processing the names of an application</dfn> is
The <dfn>steps for processing the name of an application</dfn> is
given by the following algorithm. The algorithm takes a
<var>manifest</var>, and a key (either, "altname" or "name"), as an
argument. It returns either <code>undefined</code>, a string, or an
error.
<var>manifest</var> as an argument. It returns either
<code>undefined</code>, a string, or an error.
</p>
<ol>
<li>If <a>HasOwnProperty</a>(<var>manifest</var>, <var>key</var>)
returns <code>false</code>, then return <code>undefined</code>.
<li>If <a>HasOwnProperty</a>(<var>manifest</var>, "name") returns
<code>false</code>, then return <code>undefined</code>.
</li>
<li>Let <var>value</var> be the result of calling the
[[\GetOwnProperty]] internal method of <var>manifest</var> with
argument <var>key</var>.
argument "name".
</li>
<li>If Type(<var>value</var>) is not "string", return an error.
</li>
Expand Down Expand Up @@ -620,9 +613,6 @@ <h3>
</li>
</ol>
</li>
<li>Let <var>alternative name</var> be the result of running the <a>
steps for processing the <code>altname</code> member</a>.
</li>
<li>Let <var>mode</var> be the result of running the <a>steps for
processing the <code>mode</code> member</a>. If processing returns an
error, report the error, and set <var>mode</var> to
Expand Down

0 comments on commit f07a1d7

Please sign in to comment.