Skip to content

Commit 5d1612a

Browse files
committed
[chore] Run HTML Tidy.
1 parent d556237 commit 5d1612a

File tree

1 file changed

+64
-72
lines changed

1 file changed

+64
-72
lines changed

index.html

Lines changed: 64 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ <h2>
9898
To register a site as a share target, a <a>share_target</a> entry is
9999
added to the <a data-cite="appmanifest">Web App Manifest</a>, as shown:
100100
</p>
101-
<pre class="example json" title="manifest.webmanifest">
101+
<pre class="example json" title="manifest.webmanifest">
102102
{
103103
"name": "Includinator",
104104
"share_target": {
@@ -112,10 +112,10 @@ <h2>
112112
}
113113
</pre>
114114
<p>
115-
The <a data-link-for="ShareTarget">params</a> keys correspond to the key
116-
names in <a data-cite="!WebShare#dom-sharedata">ShareData</a> from
117-
[[!WebShare]], while the values are arbitrary names that will be used as
118-
query parameters when the target is launched.
115+
The <a data-link-for="ShareTarget">params</a> keys correspond to the
116+
key names in <a data-cite="!WebShare#dom-sharedata">ShareData</a> from
117+
[[!WebShare]], while the values are arbitrary names that will be used
118+
as query parameters when the target is launched.
119119
</p>
120120
<p>
121121
When a share takes place, if the user selects this share target, the
@@ -149,7 +149,7 @@ <h2>
149149
<code>http://example.com/news</code>, the user agent will open a new
150150
window or tab and navigate to:
151151
</p>
152-
<pre>
152+
<pre>
153153
https://example.org/includinator/share.html?name=My%20News&amp;description=&amp;link=http%3A%2F%2Fexample.com%2Fnews
154154
</pre>
155155
<p>
@@ -246,33 +246,34 @@ <h3>
246246
<li>If <var>share target</var> is <code>undefined</code>, then return
247247
<code>undefined</code>.
248248
</li>
249-
<li>If <var>share
250-
target</var>["<a data-link-for="ShareTarget">method</a>"] is not an
251-
<a data-cite="!INFRA#ascii-case-insensitive">ASCII case-insensitive
252-
</a> match for the string <code>"GET"</code>,
253-
<a data-cite="!appmanifest#dfn-issue-a-developer-warning">issue a
254-
developer warning</a> that the method is not supported, and return
249+
<li>If <var>share target</var>["<a data-link-for=
250+
"ShareTarget">method</a>"] is not an <a data-cite=
251+
"!INFRA#ascii-case-insensitive">ASCII case-insensitive</a> match for
252+
the string <code>"GET"</code>, <a data-cite=
253+
"!appmanifest#dfn-issue-a-developer-warning">issue a developer
254+
warning</a> that the method is not supported, and return
255255
<code>undefined</code>.
256256
</li>
257-
<li>Let <var>action</var> be the result of
258-
<a data-cite="!URL#concept-url-parser">parsing</a> the
259-
<a data-cite="!URL#concept-url">URL</a> <var>share
260-
target</var>["<a data-link-for="ShareTarget">action</a>"], relative to
261-
the <var>manifest URL</var> and with no encoding override. If the
262-
result is failure,
263-
<a data-cite="!appmanifest#dfn-issue-a-developer-warning">issue
264-
a developer warning</a> and return <code>undefined</code>.
257+
<li>Let <var>action</var> be the result of <a data-cite=
258+
"!URL#concept-url-parser">parsing</a> the <a data-cite=
259+
"!URL#concept-url">URL</a> <var>share
260+
target</var>["<a data-link-for="ShareTarget">action</a>"], relative
261+
to the <var>manifest URL</var> and with no encoding override. If
262+
the result is failure, <a data-cite=
263+
"!appmanifest#dfn-issue-a-developer-warning">issue a developer
264+
warning</a> and return <code>undefined</code>.
265265
</li>
266266
<li>If <var>action</var> is not <a data-cite=
267267
"!appmanifest#dfn-within-scope">within scope</a> of <var>scope
268268
URL</var>, <a data-cite="!appmanifest#dfn-issue-a-developer-warning">
269-
issue a developer warning</a> that <a data-link-for="ShareTarget">
270-
action</a> is outside of the
271-
<a data-cite="!appmanifest#dfn-navigation-scope">navigation scope
272-
</a>, and return <code>undefined</code>.
269+
issue a developer warning</a> that <a data-link-for=
270+
"ShareTarget">action</a> is outside of the <a data-cite=
271+
"!appmanifest#dfn-navigation-scope">navigation scope</a> , and
272+
return <code>undefined</code>.
273+
</li>
274+
<li>Set <var>share target</var>["<a data-link-for=
275+
"ShareTarget">action</a>"] to <var>action</var>.
273276
</li>
274-
<li>Set <var>share target</var>["<a
275-
data-link-for="ShareTarget">action</a>"] to <var>action</var>.
276277
<li>Return <var>share target</var>.
277278
</li>
278279
</ol>
@@ -286,13 +287,13 @@ <h3>
286287
</p>
287288
<p>
288289
The <dfn>action</dfn> member specifies the <a data-cite=
289-
"!URL#concept-url">URL</a> for the
290-
<a data-link-for="web share targets">web share target</a>.
290+
"!URL#concept-url">URL</a> for the <a data-link-for=
291+
"web share targets">web share target</a>.
291292
</p>
292293
<p>
293-
The <dfn>method</dfn> member specifies the HTTP request
294-
<a href="https://tools.ietf.org/html/rfc7231#section-4">method</a> for
295-
the <a data-link-for="web share targets">web share target</a>.
294+
The <dfn>method</dfn> member specifies the HTTP request <a href=
295+
"https://tools.ietf.org/html/rfc7231#section-4">method</a> for the
296+
<a data-link-for="web share targets">web share target</a>.
296297
</p>
297298
<p>
298299
The <dfn>params</dfn> member contains a <a>ShareTargetParams</a>
@@ -320,9 +321,9 @@ <h3>
320321
</p>
321322
<p>
322323
The query parameters will be populated with information from the
323-
<a data-cite="!WebShare#dom-sharedata">ShareData</a>
324-
being shared. If the ShareData contains no information for a given
325-
member, the query parameter will receive an empty string.
324+
<a data-cite="!WebShare#dom-sharedata">ShareData</a> being shared. If
325+
the ShareData contains no information for a given member, the query
326+
parameter will receive an empty string.
326327
</p>
327328
</section>
328329
</section>
@@ -361,7 +362,8 @@ <h2>
361362
(perhaps using the same UI as <a data-cite=
362363
"HTML#dom-navigator-registerprotocolhandler"><code>navigator.registerProtocolHandler</code></a>).
363364
</li>
364-
<li>Only register a web share target if it has a service worker.</li>
365+
<li>Only register a web share target if it has a service worker.
366+
</li>
365367
</ul>
366368
</div>
367369
<p>
@@ -449,61 +451,51 @@ <h3>
449451
run the following steps:
450452
</p>
451453
<ol>
452-
<li>
453-
Let <var>action</var> be <var>manifest</var>["<a
454-
>share_target</a>"]["<a data-link-for="ShareTarget">action</a>"].
454+
<li>Let <var>action</var> be
455+
<var>manifest</var>["<a>share_target</a>"]["<a data-link-for=
456+
"ShareTarget">action</a>"].
455457
</li>
456-
<li>
457-
Let <var>entry list</var> be a new empty list of name-value tuples.
458+
<li>Let <var>entry list</var> be a new empty list of name-value
459+
tuples.
458460
</li>
459-
<li>
460-
For each <var>member</var> in the sequence « <code>"title"</code>,
461-
<code>"text"</code>, <code>"url"</code> »,
461+
<li>For each <var>member</var> in the sequence «
462+
<code>"title"</code>, <code>"text"</code>, <code>"url"</code> »,
462463
<ul>
463-
<li>
464-
Let <var>name</var> be the value of
465-
<var>manifest</var>["<a>share_target</a>"]["<a
466-
data-link-for="ShareTarget">params</a>"][<var>member</var>].
464+
<li>Let <var>name</var> be the value of
465+
<var>manifest</var>["<a>share_target</a>"]["<a data-link-for=
466+
"ShareTarget">params</a>"][<var>member</var>].
467467
</li>
468-
<li>
469-
If <var>name</var> is <code>undefined</code> or an empty string,
470-
then continue.
468+
<li>If <var>name</var> is <code>undefined</code> or an empty
469+
string, then continue.
471470
</li>
472-
<li>
473-
Let <var>value</var> be the value of
474-
<var>data</var>[<var>member</var>].
471+
<li>Let <var>value</var> be the value of
472+
<var>data</var>[<var>member</var>].
475473
</li>
476-
<li>
477-
If <var>value</var> is <code>undefined</code>, set
478-
<var>value</var> to an empty string.
474+
<li>If <var>value</var> is <code>undefined</code>, set
475+
<var>value</var> to an empty string.
479476
</li>
480477
<li>
481478
<a data-cite="!INFRA#list-append">Append</a> to <var>entry
482479
list</var> a tuple with <var>name</var> and <var>value</var>.
483480
</li>
484481
</ul>
485482
</li>
486-
<li>
487-
Let <var>query</var> be the result of running the
488-
<a data-cite="!URL#concept-urlencoded-serializer">
489-
<code>application/x-www-form-urlencoded</code> serializer</a> with
490-
entry list and no encoding override.
483+
<li>Let <var>query</var> be the result of running the <a data-cite=
484+
"!URL#concept-urlencoded-serializer"><code>application/x-www-form-urlencoded</code>
485+
serializer</a> with entry list and no encoding override.
491486
</li>
492-
<li>
493-
Set <var>action</var>'s
494-
<a data-cite="!URL#concept-url-query">query</a>
495-
component to <var>query</var>.
487+
<li>Set <var>action</var>'s <a data-cite=
488+
"!URL#concept-url-query">query</a> component to <var>query</var>.
496489
</li>
497-
<li>
498-
Run the <a data-cite="!HTML#window-open-steps">window open steps</a>
499-
on <var>action</var>, with empty <var>target</var> and empty
500-
<var>features</var>.
490+
<li>Run the <a data-cite="!HTML#window-open-steps">window open
491+
steps</a> on <var>action</var>, with empty <var>target</var> and
492+
empty <var>features</var>.
501493
</li>
502494
</ol>
503495
<p class="note">
504-
This algorithm assumes that <var>manifest</var> has
505-
had the <a>post-processing the <code>share_target</code> member</a>
506-
algorithm run on it and still has a <a>share_target</a> afterwards.
496+
This algorithm assumes that <var>manifest</var> has had the
497+
<a>post-processing the <code>share_target</code> member</a> algorithm
498+
run on it and still has a <a>share_target</a> afterwards.
507499
</p>
508500
</section>
509501
</section>

0 commit comments

Comments
 (0)