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.
cc: @cdumez
As noted in https://github.com/w3c/web-platform-tests/issues/7647
The steps to resolve a relative path have:
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:
... although callers and the algorithm itself allow relpath to be an absolute path. This should be fixed.