Skip to content

Commit 15b476b

Browse files
committed
fix: preserve Windows drive letter in buffer for path state
1 parent 05a5d83 commit 15b476b

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

url.bs

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ Group: WHATWG
33
H1: URL
44
Shortname: url
55
Text Macro: TWITTER urlstandard
6-
Text Macro: LATESTRD 2025-08
6+
Text Macro: LATESTRD 2025-02
77
Abstract: The URL Standard defines URLs, domains, IP addresses, the <code>application/x-www-form-urlencoded</code> format, and their API.
88
Translation: ja https://triple-underscore.github.io/URL-ja.html
99
Translation: zh-Hans https://htmlspecs.com/url/
10-
Translation: ko https://ko.htmlspecs.com/url/
1110
Required IDs: application/x-www-form-urlencoded,urlencoded-parsing
1211
</pre>
1312

@@ -2248,6 +2247,21 @@ and then runs these steps:
22482247
<li><p>If <a>c</a> is an <a>ASCII alphanumeric</a>, U+002B (+), U+002D (-), or U+002E (.),
22492248
append <a>c</a>, <a lt="ASCII lowercase">lowercased</a>, to <var>buffer</var>.
22502249

2250+
<li>
2251+
<p>Otherwise, if <a>c</a> is U+003A (:), <var>buffer</var>'s <a for=string>length</a> is 1,
2252+
<var>buffer</var> contains only an <a>ASCII alpha</a>, and <a>remaining</a> starts with
2253+
U+005C (\):
2254+
2255+
<ol>
2256+
<li><p>Set <var>url</var>'s <a for=url>scheme</a> to "<code>file</code>".
2257+
2258+
<li><p>Set <var>url</var>'s <a for=url>host</a> to the empty string.
2259+
2260+
<li><p>Set <var>buffer</var> to <var>buffer</var>, followed by U+003A (:).
2261+
2262+
<li><p>Set <var>state</var> to <a>path state</a>.
2263+
</ol>
2264+
22512265
<li>
22522266
<p>Otherwise, if <a>c</a> is U+003A (:), then:
22532267

0 commit comments

Comments
 (0)