Re: [whatwg/url] Repeated slashes should be ignored in file scheme (#234)

domenic commented on this pull request.



> +      <li>
+      <p>If <a>c</a> is neither "<code>/</code>" nor "<code>\</code>", run these substeps:
+        <ol>
+          <li>
+            <p>If <var>url</var>'s <a for=url>scheme</a> is "<code>file</code>", run these
+            subsubsteps:
+
+            <ol>
+             <li><p>If <a>remaining</a> does not start with "<code>//</code>",
+             <a>syntax violation</a>.
+
+             <li><p>Set <var>state</var> to <a>file state</a>.
+            </ol>
+          <li>
+            <p>Otherwise, set <var>state</var>
+            to <a>authority state</a>, and decrease <var>pointer</var> by one.</p>

Running the jsdom/whatwg-url tests, this pointer decrease needs to happen even if the scheme is file.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/pull/234#pullrequestreview-20821177

Received on Wednesday, 8 February 2017 17:42:35 UTC