You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Matching is performed according to the basic filtering scheme defined in
7460
-
[[RFC4647]] section 3.3.1. <code>language-range</code> is a basic language range per
7461
-
[[[RFC4647]]] [[RFC4647]] section 2.1. A <code>language-range</code> of "*" matches any
7462
-
non-empty <code>language-tag</code> string. Otherwise, the function returns `false`.
7456
+
<p>Returns `true` if the argument <code>language-tag</code> (a <a data-cite="RDF12-CONCEPTS#dfn-language-tag">language tag</a>)
7457
+
matches the argument <code>language-range</code> (a [basic language range](https://www.rfc-editor.org/rfc/rfc4647#section-2.1) per [[[RFC4647]]] [[RFC4647]] section 2.1)
7458
+
according to the basic filtering scheme defined in
7459
+
[[RFC4647]] section 3.3.1. Otherwise, the function returns `false`.
7460
+
</p>
7461
+
7462
+
<p>If <code>language-tag</code>, <code>language-range</code>, or both are empty
7463
+
(and thus not a valid language tag or language range, respectively),
7464
+
the function returns `false`.
7463
7465
</p>
7466
+
7467
+
<p>A <code>language-range</code> of "*" matches any non-empty <code>language-tag</code> string.</p>
0 commit comments