You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: url.bs
+14-3Lines changed: 14 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -544,7 +544,7 @@ U+005F (_).
544
544
</ol>
545
545
546
546
<p class=note>Of the possible values for the <var>percentEncodeSet</var> argument only two end up
547
-
encoding U+0025 (%) and thus give “roundtripable data”: <a>component percent-encode set</a> and
547
+
encoding U+0025 (%) and thus give "roundtripable data": <a>component percent-encode set</a> and
548
548
<a><code>application/x-www-form-urlencoded</code> percent-encode set</a>. The other values for the
549
549
<var>percentEncodeSet</var> argument — which happen to be used by the <a>URL parser</a> — leave
550
550
U+0025 (%) untouched and as such it needs to be
@@ -2247,8 +2247,19 @@ and then runs these steps:
2247
2247
<li><p>If <a>c</a> is an <a>ASCII alphanumeric</a>, U+002B (+), U+002D (-), or U+002E (.),
2248
2248
append <a>c</a>, <a lt="ASCII lowercase">lowercased</a>, to <var>buffer</var>.
2249
2249
2250
-
<li>
2251
-
<p>Otherwise, if <a>c</a> is U+003A (:), then:
2250
+
<li>
2251
+
<p>Otherwise, if <a>c</a> is U+003A (:) and <var>buffer</var>'s <a for=string>length</a> is 1 and <var>buffer</var>'s first <a for=/>code point</a> is an <a>ASCII alpha</a> and <a>remaining</a> starts with U+005C (\), then:
2252
+
2253
+
<ol>
2254
+
<li><p>Set <var>url</var>'s <a for=url>scheme</a> to "<code>file</code>".
2255
+
<li><p>Set <var>buffer</var> to the empty string.
2256
+
<li><p>Replace the first <a for=/>code point</a> in <a>remaining</a> (U+005C (\)) with U+002F (/).
2257
+
<li><p>If <a>remaining</a> does not start with "<code>//</code>", <a>special-scheme-missing-following-solidus</a><a>validation error</a>.
0 commit comments