diff --git a/index.bs b/index.bs index eee7980..71c017d 100644 --- a/index.bs +++ b/index.bs @@ -223,32 +223,31 @@ a [=/file system locator=] |b| if |a|'s [=file system locator/root=] is |b|'s [=file system locator/root=], and |a|'s [=file system locator/path=] is [=the same path as=] |b|'s [=file system locator/path=]. -The locate an entry algorithm takes a -[=/file system locator=] |locator| and returns either a [=/file system entry=] or null. -If |locator| is a [=file locator=], this method must return either a [=file entry=] or null. -If |locator| is a [=directory locator=], this method must return either a [=directory entry=] or null. -The steps of this algorithm are [=implementation-defined=]. - -The get the locator algorithm takes a -[=/file system entry=] |entry| and returns a [=/file system locator=] |locator|. - -If |entry| is a [=file entry=], |locator| must be a [=file locator=]. -If |entry| is a [=directory entry=], |locator| must be a [=directory locator=]. -If [=locating an entry=] given [=/file system locator=] |locator| returns a -[=/file system entry=] |entry|, then [=getting the locator=] of |entry| -must return |locator| if no intermediate file system operations were run. -Typically the steps are symmetric to the [=locate an entry=] algorithm. - -If |entry| is the root directory of the [=origin private file system=], then -|entry|'s [=file system entry/name=] must be the empty string and -[=getting the locator=] of |entry| must return a [=/file system locator=] -whose [=file system locator/path=] is [=list/empty=]. - -If [=locating an entry=] given [=/file system locator=] |locator| returns a -[=/file system entry=] |entry| that is not the root directory of the -[=origin private file system=], then |entry|'s [=file system entry/name=] must -be the same [=string=] as the last [=list/item=] of -|locator|'s [=file system locator/path=]. +
+The locate an entry algorithm given a +[=/file system locator=] |locator| runs an [=implementation-defined=] series of steps adhering to +these constraints: + + +
+ +
+The get the locator algorithm given +[=/file system entry=] |entry| runs an [=implementation-defined=] series of steps adhering to these +constraints: + + +
A file system path is a [=/list=] of one or more [=strings=]. This 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 [=file system locator/kind=] is {{FileSystemHandleKind/"file"}}.
-To create a child FileSystemFileHandle -given a [=directory locator=] |parentLocator| and a [=file system entry/name=] |name| -in a [=/Realm=] |realm|, run these steps: +To +create a child FileSystemFileHandle +given a [=directory locator=] |parentLocator| and a string |name| in a [=/Realm=] |realm|: 1. Let |handle| be a [=new=] {{FileSystemFileHandle}} in |realm|. 1. Let |childType| be {{FileSystemHandleKind/"file"}}. @@ -598,9 +597,9 @@ Note: A {{FileSystemDirectoryHandle}}'s associated [=FileSystemHandle/locator=]' [=file system locator/kind=] is {{FileSystemHandleKind/"directory"}}.
-To create a child FileSystemDirectoryHandle -given a [=directory locator=] |parentLocator| and a [=file system entry/name=] |name| -in a [=/Realm=] |realm|, run these steps: +To +create a child FileSystemDirectoryHandle +given a [=directory locator=] |parentLocator| and a string |name| in a [=/Realm=] |realm|: 1. Let |handle| be a [=new=] {{FileSystemDirectoryHandle}} in |realm|. 1. Let |childType| be {{FileSystemHandleKind/"directory"}}.