From a76ad20f3d3131c4389c7ef913c005afd80aeb04 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Thu, 2 Feb 2017 13:50:19 +0100 Subject: [PATCH] File URLs with percent-encoded Windows drive letters Fixes https://github.com/whatwg/url/issues/210. --- url/urltestdata.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/url/urltestdata.json b/url/urltestdata.json index dc771d80090488..1ce70b54d5b31a 100644 --- a/url/urltestdata.json +++ b/url/urltestdata.json @@ -4767,6 +4767,35 @@ "search": "", "hash": "" }, + "# file URLs containing percent-encoded Windows drive letters (shouldn't work)", + { + "input": "file:///C%3A/", + "base": "about:blank", + "href": "file:///C%3A/", + "protocol": "file:", + "username": "", + "password": "", + "host": "", + "hostname": "", + "port": "", + "pathname": "/C%3A/", + "search": "", + "hash": "" + }, + { + "input": "file:///C%7C/", + "base": "about:blank", + "href": "file:///C%7C/", + "protocol": "file:", + "username": "", + "password": "", + "host": "", + "hostname": "", + "port": "", + "pathname": "/C%7C/", + "search": "", + "hash": "" + }, "# file URLs relative to other file URLs (via https://github.com/jsdom/whatwg-url/pull/60)", { "input": "pix/submit.gif",