Skip to content

Commit 77bcf6e

Browse files
authored
Merge pull request #179 from rdfjs/dir-empty-string
fix: added more details regarding direction and empty string
2 parents 88e7d91 + f5e6eee commit 77bcf6e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,9 @@ <h3><dfn>Literal</dfn> interface</h3>
255255
<p>
256256
<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>.
258+
Implementations supporting this feature should use an empty string when no direction is given.
259+
<code>null</code> or <code>undefined</code> values are allowed to maintain compatibility with legacy
260+
implementations.
258261
</p>
259262
<p>
260263
<dfn>datatype</dfn> a <code>NamedNode</code> whose IRI represents the datatype of the literal.

0 commit comments

Comments
 (0)