Skip to content

Commit

Permalink
Indicate language is a language tag. Fixes #46 again.
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Jul 16, 2015
1 parent 3118ece commit 90e2964
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
5 changes: 3 additions & 2 deletions notifications.bs
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,10 @@ of rules P2 and P3 if it has a value other than "<code>auto</code>". [[!BIDI]]
<a lt="concept language">language</a> specifies the primary language for the
<a lt="concept notification">notification</a>'s
<a lt="concept title">title</a> and <a>body</a>. Its value is a string. The empty string
indicates that the primary language is unknown.
indicates that the primary language is unknown. Any other string must be interpreted as a
language tag. Validity or well-formedness are not enforced. [[!LANG]]

<p class=note>Developers are encouraged to only use valid language tags. [[LANG]]
<p class=note>Developers are encouraged to only use valid language tags.


<h3 id=resources>Resources</h3>
Expand Down
14 changes: 6 additions & 8 deletions notifications.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<h1 class="p-name no-ref" id="title">Notifications API</h1>

<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Living Standard — Last Updated
<time class="dt-updated" datetime="2015-07-15">15 July 2015</time></span></h2>
<time class="dt-updated" datetime="2015-07-16">16 July 2015</time></span></h2>

<div data-fill-with="spec-metadata">
<dl>
Expand Down Expand Up @@ -103,7 +103,6 @@ <h2 class="no-num no-toc no-ref heading settled" id="contents"><span class="cont
<li><a href="#references"><span class="secno"></span> <span class="content">References</span></a>
<ul class="toc">
<li><a href="#normative"><span class="secno"></span> <span class="content">Normative References</span></a>
<li><a href="#informative"><span class="secno"></span> <span class="content">Informative References</span></a>
</ul>
<li><a href="#idl-index"><span class="secno"></span> <span class="content">IDL Index</span></a>
</ul></div>
Expand Down Expand Up @@ -429,10 +428,11 @@ <h3 class="heading settled" data-level="2.4" id="language"><span class="secno">2
<a data-link-type="dfn" href="#concept-language">language</a> specifies the primary language for the
<a data-link-type="dfn" href="#concept-notification">notification</a>’s
<a data-link-type="dfn" href="#concept-title">title</a> and <a data-link-type="dfn" href="#body">body</a>. Its value is a string. The empty string
indicates that the primary language is unknown.
indicates that the primary language is unknown. Any other string must be interpreted as a
language tag. Validity or well-formedness are not enforced. <a data-link-type="biblio" href="#biblio-lang">[LANG]</a>

</p>
<p class="note" role="note">Developers are encouraged to only use valid language tags. <a data-link-type="biblio" href="#biblio-lang">[LANG]</a>
<p class="note" role="note">Developers are encouraged to only use valid language tags.


</p>
Expand Down Expand Up @@ -1467,6 +1467,8 @@ <h3 class="no-num heading settled" id="normative"><span class="content">Normativ
<dd>Anne van Kesteren. <a href="https://fetch.spec.whatwg.org/">Fetch Standard</a>. Living Standard. URL: <a href="https://fetch.spec.whatwg.org/">https://fetch.spec.whatwg.org/</a>
<dt id="biblio-html"><a class="self-link" href="#biblio-html"></a>[HTML]
<dd>Ian Hickson. <a href="https://html.spec.whatwg.org/multipage/">HTML Standard</a>. Living Standard. URL: <a href="https://html.spec.whatwg.org/multipage/">https://html.spec.whatwg.org/multipage/</a>
<dt id="biblio-lang"><a class="self-link" href="#biblio-lang"></a>[LANG]
<dd>Addison Phillips; Mark Davis. <a href="https://tools.ietf.org/html/bcp47">Tags for Identifying Languages; Matching of Language Tags</a>. URL: <a href="https://tools.ietf.org/html/bcp47">https://tools.ietf.org/html/bcp47</a>
<dt id="biblio-url"><a class="self-link" href="#biblio-url"></a>[URL]
<dd>Anne van Kesteren; Sam Ruby. <a href="https://url.spec.whatwg.org/">URL</a>. URL: <a href="https://url.spec.whatwg.org/">https://url.spec.whatwg.org/</a>
<dt id="biblio-webidl"><a class="self-link" href="#biblio-webidl"></a>[WEBIDL]
Expand All @@ -1475,10 +1477,6 @@ <h3 class="no-num heading settled" id="normative"><span class="content">Normativ
<dd>S. Bradner. <a href="https://tools.ietf.org/html/rfc2119">Key words for use in RFCs to Indicate Requirement Levels</a>. March 1997. Best Current Practice. URL: <a href="https://tools.ietf.org/html/rfc2119">https://tools.ietf.org/html/rfc2119</a>
<dt id="biblio-vibration"><a class="self-link" href="#biblio-vibration"></a>[VIBRATION]
<dd>Anssi Kostiainen. <a href="http://dev.w3.org/2009/dap/vibration/">Vibration API</a>. 10 February 2015. REC. URL: <a href="http://dev.w3.org/2009/dap/vibration/">http://dev.w3.org/2009/dap/vibration/</a></dl>
<h3 class="no-num heading settled" id="informative"><span class="content">Informative References</span><a class="self-link" href="#informative"></a></h3>
<dl>
<dt id="biblio-lang"><a class="self-link" href="#biblio-lang"></a>[LANG]
<dd>Addison Phillips; Mark Davis. <a href="https://tools.ietf.org/html/bcp47">Tags for Identifying Languages; Matching of Language Tags</a>. URL: <a href="https://tools.ietf.org/html/bcp47">https://tools.ietf.org/html/bcp47</a></dl>
<h2 class="no-num heading settled" id="idl-index"><span class="content">IDL Index</span><a class="self-link" href="#idl-index"></a></h2>
<pre class="idl">[<a class="idl-code" data-link-type="constructor" href="#dom-notification-notification">Constructor</a>(DOMString <a href="#dom-notification-notification-title-options-title">title</a>, optional <a data-link-type="idl-name" href="#dictdef-notificationoptions">NotificationOptions</a> <a href="#dom-notification-notification-title-options-options">options</a>),
Exposed=(Window,Worker)]
Expand Down

0 comments on commit 90e2964

Please sign in to comment.