Skip to content
Permalink
Browse files

Remove requirements on language tags. Encourage developers to do the …

…right thing. Fixes #46 & #47
  • Loading branch information...
annevk committed Jul 15, 2015
1 parent 4661293 commit 743cd90906c5fa522d31ef0082b2a6e573385b6b
Showing with 22 additions and 16 deletions.
  1. +8 −7 notifications.bs
  2. +14 −9 notifications.html
@@ -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
<code>dir</code>.

<li><p>If <var>options</var>'s <code>lang</code> is either a valid BCP 47
language tag or the empty string, set <var>notification</var>'s
<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 language">language</a> to
<var>options</var>'s <code>lang</code>.

<li><p>Set <var>notification</var>'s <a lt="concept origin">origin</a> to the
<a>entry settings object</a>'s <a>origin</a>.
@@ -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
<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 valid
BCP 47 language tag, or the empty string. The empty string indicates that the
primary language is unknown. [[!LANG]]
<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.

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


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

<p>Thanks to
Addison Phillips,
Aharon (Vladimir) Lanin,
Alex Russell,
Arkadiusz Michalski,
@@ -861,6 +861,7 @@ Jon Lee,
Jonas Sicking,
Michael Cooper,
Michael Henretty,
Michael™ Smith,
Olli Pettay,
Peter Beverloo,
Reuben Morais,
@@ -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>
<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>
@@ -256,10 +257,8 @@ <h2 class="heading settled" data-level="2" id="notifications"><span class="secno

</p>
<li>
<p>If <var>options</var>’s <code>lang</code> is either a valid BCP 47
language tag or the empty string, set <var>notification</var>’s
<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>Set <var>notification</var>’s <a data-link-type="dfn" href="#concept-language">language</a> to
<var>options</var>’s <code>lang</code>.

</p>
<li>
@@ -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
<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 valid
BCP 47 language tag, or the empty string. The empty string indicates that the
primary language is unknown. <a data-link-type="biblio" href="#biblio-lang">[LANG]</a>
<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.

</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>
@@ -1255,6 +1256,7 @@ <h2 class="no-num heading settled" id="acknowledgments"><span class="content">Ac


<p>Thanks to
Addison Phillips,
Aharon (Vladimir) Lanin,
Alex Russell,
Arkadiusz Michalski,
@@ -1272,6 +1274,7 @@ <h2 class="no-num heading settled" id="acknowledgments"><span class="content">Ac
Jonas Sicking,
Michael Cooper,
Michael Henretty,
Michael™ Smith,
Olli Pettay,
Peter Beverloo,
Reuben Morais,
@@ -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>
<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]
@@ -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>
<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)]

0 comments on commit 743cd90

Please sign in to comment.
You can’t perform that action at this time.