From a7f27059f04dfe81d2b58c516549fd7004cf5e29 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Tue, 27 Apr 2021 20:40:20 +0200 Subject: [PATCH] Do not perform special character replacement in fileName Tests: https://github.com/web-platform-tests/wpt/commit/106157f2901e5ad6b21c37ecdfa9ed4cdfe6ac47. Closes #41. --- index.bs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.bs b/index.bs index 8a24469..988ba3e 100644 --- a/index.bs +++ b/index.bs @@ -689,9 +689,7 @@ user agents must run the following steps: and {{File/File(fileBits, fileName, options)/options}}. -2. Let |n| be a new string of the same size as the {{fileName}} argument to the constructor. - Copy every character from {{fileName}} to |n|, - replacing any "/" character (U+002F SOLIDUS) with a ":" (U+003A COLON). +2. Let |n| be the {{fileName}} argument to the constructor. Note: Underlying OS filesystems use differing conventions for file name; with constructed files, mandating UTF-16 lessens ambiquity when file names are converted to byte sequences.