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

Evaluating /a//b is not defined #20

Closed inexorabletash closed 6 years ago

inexorabletash commented 6 years ago

cc: @cdumez

As noted in https://github.com/w3c/web-platform-tests/issues/7647

The steps to resolve a relative path have:

If relpath is an absolute path, return relpath.

And the steps to evaluate a path don't handle empty segments. Either the former needs to strip empty segments or the latter needs to ignore them. Latter is probably easiest.

Also, the preamble for resolve says:

and relpath (a relative path or the empty string)

... although callers and the algorithm itself allow relpath to be an absolute path. This should be fixed.