Skip to content

Commit

Permalink
Remove requirements on language tags. Encourage developers to do the …
Browse files Browse the repository at this point in the history
…right thing. Fixes #46 & #47
  • Loading branch information
annevk committed Jul 15, 2015
1 parent 4661293 commit 743cd90
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
15 changes: 8 additions & 7 deletions notifications.bs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -121,10 +121,8 @@ or vibration pattern that is not otherwise accessible to the end user.
<a lt="concept direction">direction</a> to <var>options</var>'s <a lt="concept direction">direction</a> to <var>options</var>'s
<code>dir</code>. <code>dir</code>.


<li><p>If <var>options</var>'s <code>lang</code> is either a valid BCP 47 <li><p>Set <var>notification</var>'s <a lt="concept language">language</a> to
language tag or the empty string, set <var>notification</var>'s <var>options</var>'s <code>lang</code>.
<a lt="concept language">language</a> to <var>options</var>'s
<code>lang</code>, and set it to the empty string otherwise. [[!LANG]]


<li><p>Set <var>notification</var>'s <a lt="concept origin">origin</a> to the <li><p>Set <var>notification</var>'s <a lt="concept origin">origin</a> to the
<a>entry settings object</a>'s <a>origin</a>. <a>entry settings object</a>'s <a>origin</a>.
Expand Down Expand Up @@ -248,9 +246,10 @@ of rules P2 and P3 if it has a value other than "<code>auto</code>". [[!BIDI]]
<p>The <a lt="concept notification">notification</a>'s <p>The <a lt="concept notification">notification</a>'s
<a lt="concept language">language</a> specifies the primary language for the <a lt="concept language">language</a> specifies the primary language for the
<a lt="concept notification">notification</a>'s <a lt="concept notification">notification</a>'s
<a lt="concept title">title</a> and <a>body</a>. Its value is a valid <a lt="concept title">title</a> and <a>body</a>. Its value is a string. The empty string
BCP 47 language tag, or the empty string. The empty string indicates that the indicates that the primary language is unknown.
primary language is unknown. [[!LANG]]
<p class=note>Developers are encouraged to only use valid language tags. [[LANG]]




<h3 id=resources>Resources</h3> <h3 id=resources>Resources</h3>
Expand Down Expand Up @@ -844,6 +843,7 @@ value it was initialized to.
<h2 id=acknowledgments class=no-num>Acknowledgments</h2> <h2 id=acknowledgments class=no-num>Acknowledgments</h2>


<p>Thanks to <p>Thanks to
Addison Phillips,
Aharon (Vladimir) Lanin, Aharon (Vladimir) Lanin,
Alex Russell, Alex Russell,
Arkadiusz Michalski, Arkadiusz Michalski,
Expand All @@ -861,6 +861,7 @@ Jon Lee,
Jonas Sicking, Jonas Sicking,
Michael Cooper, Michael Cooper,
Michael Henretty, Michael Henretty,
Michael™ Smith,
Olli Pettay, Olli Pettay,
Peter Beverloo, Peter Beverloo,
Reuben Morais, Reuben Morais,
Expand Down
23 changes: 14 additions & 9 deletions notifications.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ <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> <li><a href="#references"><span class="secno"></span> <span class="content">References</span></a>
<ul class="toc"> <ul class="toc">
<li><a href="#normative"><span class="secno"></span> <span class="content">Normative References</span></a> <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> </ul>
<li><a href="#idl-index"><span class="secno"></span> <span class="content">IDL Index</span></a> <li><a href="#idl-index"><span class="secno"></span> <span class="content">IDL Index</span></a>
</ul></div> </ul></div>
Expand Down Expand Up @@ -256,10 +257,8 @@ <h2 class="heading settled" data-level="2" id="notifications"><span class="secno


</p> </p>
<li> <li>
<p>If <var>options</var>’s <code>lang</code> is either a valid BCP 47 <p>Set <var>notification</var>’s <a data-link-type="dfn" href="#concept-language">language</a> to
language tag or the empty string, set <var>notification</var>’s <var>options</var>’s <code>lang</code>.
<a data-link-type="dfn" href="#concept-language">language</a> to <var>options</var>’s
<code>lang</code>, and set it to the empty string otherwise. <a data-link-type="biblio" href="#biblio-lang">[LANG]</a>


</p> </p>
<li> <li>
Expand Down Expand Up @@ -429,9 +428,11 @@ <h3 class="heading settled" data-level="2.4" id="language"><span class="secno">2
<p>The <a data-link-type="dfn" href="#concept-notification">notification</a>’s <p>The <a data-link-type="dfn" href="#concept-notification">notification</a>’s
<a data-link-type="dfn" href="#concept-language">language</a> specifies the primary language for the <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-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 valid <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
BCP 47 language tag, or the empty string. The empty string indicates that the indicates that the primary language is unknown.
primary language is unknown. <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> </p>
Expand Down Expand Up @@ -1255,6 +1256,7 @@ <h2 class="no-num heading settled" id="acknowledgments"><span class="content">Ac




<p>Thanks to <p>Thanks to
Addison Phillips,
Aharon (Vladimir) Lanin, Aharon (Vladimir) Lanin,
Alex Russell, Alex Russell,
Arkadiusz Michalski, Arkadiusz Michalski,
Expand All @@ -1272,6 +1274,7 @@ <h2 class="no-num heading settled" id="acknowledgments"><span class="content">Ac
Jonas Sicking, Jonas Sicking,
Michael Cooper, Michael Cooper,
Michael Henretty, Michael Henretty,
Michael™ Smith,
Olli Pettay, Olli Pettay,
Peter Beverloo, Peter Beverloo,
Reuben Morais, Reuben Morais,
Expand Down Expand Up @@ -1464,8 +1467,6 @@ <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> <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] <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> <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] <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> <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] <dt id="biblio-webidl"><a class="self-link" href="#biblio-webidl"></a>[WEBIDL]
Expand All @@ -1474,6 +1475,10 @@ <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> <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] <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> <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> <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>), <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)] Exposed=(Window,Worker)]
Expand Down

0 comments on commit 743cd90

Please sign in to comment.