Skip to content

Commit 2c378e8

Browse files
authored
Merge pull request #52 from ewilligers/omit-absent-fields
Update example for missing share data
2 parents e7d464d + 40b80b3 commit 2c378e8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,14 @@ <h2>
150150
window or tab and navigate to:
151151
</p>
152152
<pre>
153-
https://example.org/includinator/share.html?name=My%20News&amp;description=&amp;link=http%3A%2F%2Fexample.com%2Fnews
153+
https://example.org/includinator/share.html?name=My%20News&amp;link=http%3A%2F%2Fexample.com%2Fnews
154154
</pre>
155+
<p>
156+
The query parameters are populated with information from the
157+
<a data-cite="!WebShare#dom-sharedata"><code>ShareData</code></a> being
158+
shared. If the ShareData contains no information for a given member,
159+
the query parameter is omitted.
160+
</p>
155161
<p>
156162
How the handler deals with the shared data is at the handler's
157163
discretion, and will generally depend on the type of app. Here are some
@@ -322,12 +328,6 @@ <h3>
322328
The <dfn>url</dfn> member specifies the name of the query parameter
323329
used for the URL string referring to a resource being shared.
324330
</p>
325-
<p>
326-
The query parameters will be populated with information from the
327-
<a data-cite="!WebShare#dom-sharedata"><code>ShareData</code></a>
328-
being shared. If the ShareData contains no information for a given
329-
member, the query parameter will receive an empty string.
330-
</p>
331331
</section>
332332
</section>
333333
<section>

0 commit comments

Comments
 (0)