diff --git a/index.bs b/index.bs index c655536..13c02a8 100644 --- a/index.bs +++ b/index.bs @@ -229,12 +229,11 @@ Their [=deserialization steps=], given |serialized| and |value| are: :: Returns the [=entry/name=] of the entry represented by |handle|. -The kind attribute must -return {{FileSystemHandleKind/"file"}} if the associated [=FileSystemHandle/entry=] is a [=file entry=], -and return {{FileSystemHandleKind/"directory"}} otherwise. +The kind getter steps are to return +{{FileSystemHandleKind/"file"}} if [=this=] is a [=file entry=]; otherwise +{{FileSystemHandleKind/"directory"}}. -The name attribute must return the [=entry/name=] of the -associated [=FileSystemHandle/entry=]. +The name getter steps are to return [=this=]'s [=entry/name=]. ### The {{FileSystemHandle/isSameEntry()}} method ### {#api-filesystemhandle-issameentry} @@ -299,9 +298,9 @@ The getFile() method steps are: 1. Let |f| be a new {{File}}. 1. Set |f|'s snapshot state to the current state of |entry|. 1. Set |f|'s underlying byte sequence to a copy of |entry|'s [=binary data=]. - 1. Initialize the value of |f|'s {{File/name}} attribute to |entry|'s [=entry/name=]. - 1. Initialize the value of |f|'s {{File/lastModified}} attribute to |entry|'s [=file entry/modification timestamp=]. - 1. Initialize the value of |f|'s {{Blob/type}} attribute to an [=implementation-defined=] value, based on for example |entry|'s [=entry/name=] or its file extension. + 1. Set |f|.{{File/name}} to |entry|'s [=entry/name=]. + 1. Set |f|.{{File/lastModified}} to |entry|'s [=file entry/modification timestamp=]. + 1. Set |f|.{{Blob/type}} to an [=implementation-defined=] value, based on for example |entry|'s [=entry/name=] or its file extension. Issue: The reading and snapshotting behavior needs to be better specified in the [[FILE-API]] spec, for now this is kind of hand-wavy.