Skip to content

Commit 88e7d91

Browse files
rubensworksbergos
andcommitted
Allow direction to be falsy
Co-authored-by: Thomas Bergwinkl <[email protected]>
1 parent 7c2fd5e commit 88e7d91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ <h3><dfn>Literal</dfn> interface</h3>
253253
<code>"en"</code>, <code>"en-gb"</code>) or an empty string if the literal has no language.
254254
</p>
255255
<p>
256-
<dfn>direction</dfn> is defined if the string is a directional language-tagged string.
256+
<dfn>direction</dfn> is not falsy if the string is a directional language-tagged string.
257257
In this case, the <code>direction</code> MUST be either be <code>"ltr"</code> or <code>"rtl"</code>.
258258
</p>
259259
<p>
@@ -272,7 +272,7 @@ <h3><dfn>Literal</dfn> interface</h3>
272272
all general <a>Term.equals</a> conditions hold,
273273
<code>term.value</code> is the same string as <code>other.value</code>,
274274
<code>term.language</code> is the same string as <code>other.language</code>,
275-
<code>term.direction</code> is the same string as <code>other.direction</code> or are both undefined, and
275+
<code>term.direction</code> is the same string as <code>other.direction</code> or are both falsy, and
276276
<code>term.datatype.equals(other.datatype)</code> evaluates to <code>true</code>;
277277
otherwise, it returns <code>false</code>.
278278
</p>
@@ -433,7 +433,7 @@ <h3><dfn>DataFactory</dfn> interface</h3>
433433
then it is used for the value of <code>datatype</code>.
434434
If <code>languageOrDatatype</code> is a <code>DirectionalLanguage</code>,
435435
then its <code>language</code> and <code>direction</code> attributes
436-
are respectively used for the literal's <code>language</code> and <code>direction</code>.
436+
are respectively used for the literal's <code>language</code> and <code>direction</code>, where <code>direction</code> is optional or can be falsy.
437437
Otherwise <code>languageOrDatatype</code> is used for the value of <code>language</code>.
438438
</p>
439439
<p>

0 commit comments

Comments
 (0)