Skip to content

Commit dfb8400

Browse files
authored
Merge pull request #612 from zolkis/fix-text-records
Fix #566: parse text records
2 parents 0a0a609 + e9bcb3d commit dfb8400

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3885,17 +3885,17 @@ <h3>Parsing content</h3>
38853885
Let |language:string| be the result of running <a>ASCII decode</a>
38863886
on second <a>byte</a> to the |languageLength| + `1` byte, inclusive.
38873887
</li>
3888+
<li>
3889+
Let |buffer:byte sequence| be the <a>byte sequence</a> of the rest of the
3890+
|ndefRecords|'s <a>PAYLOAD field</a> (excluding |header| and |languageLength| number of bytes).
3891+
</li>
38883892
<li>
38893893
Set |record|'s <a>lang</a> to |language|.
38903894
</li>
38913895
<li>
38923896
Set |record|'s <a>encoding</a> be "`utf-8`" if bit `7` ([=MB field=]) of
38933897
|header| is equal to the value `0`, or else "`utf-16be`".
38943898
</li>
3895-
<li>
3896-
Let |buffer:byte sequence| be the <a>byte sequence</a> of
3897-
|ndefRecords|'s <a>PAYLOAD field</a>.
3898-
</li>
38993899
<li>
39003900
Set |record|'s <a>data</a> to |buffer|.
39013901
</li>

0 commit comments

Comments
 (0)