Skip to content

Commit bb07d59

Browse files
authored
Editorial: use <code> formatting for class names in some algorithms
Fixes #102.
1 parent 2d0b5c8 commit bb07d59

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

index.bs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ The <dfn method for=FileSystemFileHandle>createWritable(|options|)</dfn> method
355355
1. Let |entry| be [=this=]'s [=FileSystemHandle/entry=].
356356
1. Let |lockResult| be the result of [=file entry/lock/take|taking a lock=] with "`shared`" on |entry|.
357357
1. If |lockResult| is false, [=reject=] |result| with a "{{NoModificationAllowedError}}" {{DOMException}} and abort.
358-
1. Let |stream| be the result of [=create a new FileSystemWritableFileStream|creating a new FileSystemWritableFileStream=]
358+
1. Let |stream| be the result of <a>creating a new <code>FileSystemWritableFileStream</code></a>
359359
for |entry| in [=this=]'s [=relevant realm=].
360360
1. If |options|.{{FileSystemCreateWritableOptions/keepExistingData}} is true:
361361
1. Set |stream|.[=[[buffer]]=] to a copy of |entry|'s [=file entry/binary data=].
@@ -399,7 +399,7 @@ The <dfn method for=FileSystemFileHandle>createSyncAccessHandle()</dfn> method s
399399
[=reject=] |result| with an "{{InvalidStateError}}" {{DOMException}} and abort.
400400
1. Let |lockResult| be the result of [=file entry/lock/take|taking a lock=] with "`exclusive`" on |entry|.
401401
1. If |lockResult| is false, [=reject=] |result| with a "{{NoModificationAllowedError}}" {{DOMException}} and abort.
402-
1. Let |handle| be the result of [=create a new FileSystemSyncAccessHandle|creating a new FileSystemSyncAccessHandle=]
402+
1. Let |handle| be the result of <a>creating a new <code>FileSystemSyncAccessHandle</code></a>
403403
for |entry| in [=this=]'s [=relevant realm=].
404404
1. [=/Resolve=] |result| with |handle|.
405405
1. Return |result|.
@@ -788,8 +788,9 @@ Similarly, when piping a {{ReadableStream}} into a {{FileSystemWritableFileStrea
788788
</div>
789789

790790
<div algorithm>
791-
To <dfn>create a new FileSystemWritableFileStream</dfn> given a [=file entry=] |file|
792-
in a [=/Realm=] |realm|, run these steps:
791+
To
792+
<dfn local-lt="creating a new FileSystemWritableFileStream">create a new <code>FileSystemWritableFileStream</code></dfn>
793+
given a [=file entry=] |file| in a [=/Realm=] |realm|:
793794

794795
1. Let |stream| be a [=new=] {{FileSystemWritableFileStream}} in |realm|.
795796
1. Set |stream|.[=FileSystemWritableFileStream/[[file]]=] to |file|.
@@ -1051,8 +1052,9 @@ contexts where asynchronous operations come with high overhead, e.g., WebAssembl
10511052
A {{FileSystemSyncAccessHandle}} has a <dfn for="FileSystemSyncAccessHandle">file position cursor</dfn> initialized at byte offset 0 from the top of the file.
10521053

10531054
<div algorithm>
1054-
To <dfn>create a new FileSystemSyncAccessHandle</dfn> given a [=file entry=] |file|
1055-
in a [=/Realm=] |realm|, run these steps:
1055+
To
1056+
<dfn local-lt="creating a new FileSystemSyncAccessHandle">create a new <code>FileSystemSyncAccessHandle</code></dfn>
1057+
given a [=file entry=] |file| in a [=/Realm=] |realm|:
10561058

10571059
1. Let |handle| be a [=new=] {{FileSystemSyncAccessHandle}} in |realm|.
10581060
1. Set |handle|.[=FileSystemSyncAccessHandle/[[file]]=] to |file|.

0 commit comments

Comments
 (0)