WICG / entries-api

Spec defining browser support for file/directory upload by drag-and-drop
https://wicg.github.io/entries-api/
Other
41 stars 9 forks source link

//foo is not a relative or absolute path #19

Closed inexorabletash closed 7 years ago

inexorabletash commented 7 years ago

cc: @cdumez

Per https://github.com/w3c/web-platform-tests/issues/7647 the current definition of absolute path and relative path preclude //foo; a relative path can't start with / and an absolute path is / followed by a relative path.

Chrome treats //foo the same as /foo just as it treats a//b the same as a/b so we can fix by updating the definition of absolute path to:

An absolute path is a string consisting of '/' (U+002F SOLIDUS) followed by zero or more path segments joined by '/' (U+002F SOLIDUS).

cdumez commented 7 years ago

I am OK with updating the spec. When this is done, I'll work on updating WebKit accordingly.