Skip to content

Commit

Permalink
fix: no special character replacement in fileName
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato committed Apr 26, 2021
1 parent d56cd86 commit 883dd8a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.bs
Expand Up @@ -690,8 +690,7 @@ user agents must run the following steps:


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).
Copy every character from {{fileName}} to |n|.

Note: Underlying OS filesystems use differing conventions for file name;
with constructed files, mandating UTF-16 lessens ambiquity when file names are converted to <a>byte</a> sequences.
Expand Down

0 comments on commit 883dd8a

Please sign in to comment.