Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1184483

Browse files
committedMar 22, 2017
URL: trim leading slashes of file URL paths
Tests: web-platform-tests/wpt#5195. Closes #234 by superseding it. Fixes #232.
1 parent 8fb8684 commit 1184483

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

Diff for: ‎url.bs

+6
Original file line numberDiff line numberDiff line change
@@ -2113,6 +2113,12 @@ string <var>input</var>, optionally with a <a>base URL</a> <var>base</var>, opti
21132113

21142114
<li><p>Set <var>buffer</var> to the empty string.
21152115

2116+
<li><p>If <var>url</var>'s <a for=url>scheme</a> is "<code>file</code>" and <a>c</a> is
2117+
<a>EOF code point</a>, "<code>?</code>", or "<code>#</code>", then while <var>url</var>'s
2118+
<a for=url>path</a>'s <a for=list>size</a> is not 1 and <var>url</var>'s
2119+
<a for=url>path</a>[0] is the empty string, <a>validation error</a>, <a for=list>remove</a>
2120+
<var>url</var>'s <a for=url>path</a>[0].
2121+
21162122
<li><p>If <a>c</a> is "<code>?</code>", set
21172123
<var>url</var>'s <a for=url>query</a> to the empty string,
21182124
and <var>state</var> to <a>query state</a>.

0 commit comments

Comments
 (0)
Please sign in to comment.