@@ -223,32 +223,31 @@ a [=/file system locator=] |b| if
223223|a|'s [=file system locator/root=] is |b|' s [=file system locator/root=] , and
224224|a|'s [=file system locator/path=] is [=the same path as=] |b|' s [=file system locator/path=] .
225225
226- The <dfn export data-lt="locating an entry">locate an entry</dfn> algorithm takes a
227- [=/file system locator=] |locator| and returns either a [=/file system entry=] or null.
228- If |locator| is a [=file locator=] , this method must return either a [=file entry=] or null.
229- If |locator| is a [=directory locator=] , this method must return either a [=directory entry=] or null.
230- The steps of this algorithm are [=implementation-defined=] .
231-
232- The <dfn export data-lt="getting the locator">get the locator</dfn> algorithm takes a
233- [=/file system entry=] |entry| and returns a [=/file system locator=] |locator|.
234-
235- If |entry| is a [=file entry=] , |locator| must be a [=file locator=] .
236- If |entry| is a [=directory entry=] , |locator| must be a [=directory locator=] .
237- If [=locating an entry=] given [=/file system locator=] |locator| returns a
238- [=/file system entry=] |entry|, then [=getting the locator=] of |entry|
239- must return |locator| if no intermediate file system operations were run.
240- Typically the steps are symmetric to the [=locate an entry=] algorithm.
241-
242- If |entry| is the root directory of the [=origin private file system=] , then
243- |entry|'s [=file system entry/name=] must be the empty string and
244- [=getting the locator=] of |entry| must return a [=/file system locator=]
245- whose [=file system locator/path=] is [=list/empty=] .
246-
247- If [=locating an entry=] given [=/file system locator=] |locator| returns a
248- [=/file system entry=] |entry| that is not the root directory of the
249- [=origin private file system=] , then |entry|'s [=file system entry/name=] must
250- be the same [=string=] as the last [=list/item=] of
251- |locator|'s [=file system locator/path=] .
226+ <div algorithm>
227+ The <dfn export data-lt="locating an entry">locate an entry</dfn> algorithm given a
228+ [=/file system locator=] |locator| runs an [=implementation-defined=] series of steps adhering to
229+ these constraints:
230+
231+ <ul>
232+ <li><p> If |locator| is a [=file locator=] , they return a [=file entry=] or null.
233+ <li><p> If |locator| is a [=directory locator=] , they return a [=directory entry=] or null.
234+ <li><p> If these steps return |entry|, then [=getting the locator=] with |entry| returns |locator|,
235+ provided no intermediate file system operations were run.
236+ </ul>
237+ </div>
238+
239+ <div algorithm>
240+ The <dfn export data-lt="getting the locator">get the locator</dfn> algorithm given
241+ [=/file system entry=] |entry| runs an [=implementation-defined=] series of steps adhering to these
242+ constraints:
243+
244+ <ul>
245+ <li><p> If |entry| is a [=file entry=] , they return a [=file locator=] .
246+ <li><p> If |entry| is a [=directory entry=] , they return a [=directory locator=] .
247+ <li><p> If these steps return |locator|, then [=locating an entry=] with |locator| returns |entry|,
248+ provided no intermediate file system operations were run.
249+ </ul>
250+ </div>
252251
253252A <dfn export>file system path</dfn> is a [=/list=] of one or more [=strings=] .
254253This may be a virtual path that is mapped to real location on disk or in memory,
@@ -378,9 +377,9 @@ Note: A {{FileSystemFileHandle}}'s associated [=FileSystemHandle/locator=]'s
378377[=file system locator/kind=] is {{FileSystemHandleKind/"file"}} .
379378
380379<div algorithm>
381- To <dfn data-lt="creating a child FileSystemFileHandle">create a child <code>FileSystemFileHandle</code></dfn>
382- given a [=directory locator=] |parentLocator| and a [=file system entry/name=] |name|
383- in a [=/Realm=] |realm|, run these steps :
380+ To
381+ <dfn data-lt="creating a child FileSystemFileHandle">create a child <code>FileSystemFileHandle</code></dfn>
382+ given a [=directory locator=] |parentLocator| and a string |name| in a [=/Realm=] |realm|:
384383
3853841. Let |handle| be a [=new=] {{FileSystemFileHandle}} in |realm|.
3863851. Let |childType| be {{FileSystemHandleKind/"file"}} .
@@ -598,9 +597,9 @@ Note: A {{FileSystemDirectoryHandle}}'s associated [=FileSystemHandle/locator=]'
598597[=file system locator/kind=] is {{FileSystemHandleKind/"directory"}} .
599598
600599<div algorithm>
601- To <dfn data-lt="creating a child FileSystemDirectoryHandle">create a child <code>FileSystemDirectoryHandle</code></dfn>
602- given a [=directory locator=] |parentLocator| and a [=file system entry/name=] |name|
603- in a [=/Realm=] |realm|, run these steps :
600+ To
601+ <dfn data-lt="creating a child FileSystemDirectoryHandle">create a child <code>FileSystemDirectoryHandle</code></dfn>
602+ given a [=directory locator=] |parentLocator| and a string |name| in a [=/Realm=] |realm|:
604603
6056041. Let |handle| be a [=new=] {{FileSystemDirectoryHandle}} in |realm|.
6066051. Let |childType| be {{FileSystemHandleKind/"directory"}} .
0 commit comments