- From: Anne van Kesteren <notifications@github.com>
- Date: Mon, 23 Nov 2026 04:13:55 -0800
- To: w3c/FileAPI <FileAPI@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 23 November 2026 12:14:00 UTC
annevk created an issue (w3c/FileAPI#237) The `webkitRelativePath` getter carried over from the File and Directory Entries API in #222 returns "this's relative path, or the empty string if not specified". However, `File` objects don't have a relative path: _relative path_ only defines what a relative path string looks like. `File` should get an associated relative path (a relative path or the empty string, initially the empty string), and the getter should return it. It should be exported, so that HTML can set it when files are selected through `webkitdirectory`. That raises the question of what the `File` serialization steps do with it. I believe at least Chromium preserves `webkitRelativePath` when a `File` is structured cloned, but this needs checking across implementations, and WPT doesn't seem to test it. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/FileAPI/issues/237 You are receiving this because you are subscribed to this thread. Message ID: <w3c/FileAPI/issues/237@github.com>
Received on Monday, 23 November 2026 12:14:00 UTC