-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixes #1533: blobs and files and filenames weren't quite working right - Forms are now serialized according to the rather-complex form data set serialization algorithm - Tweaked some textarea value stuff; unsure if there are visible changes, but now it is much closer to the spec
- Loading branch information
Showing
16 changed files
with
407 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
"use strict"; | ||
|
||
const fileSymbols = require("./file-symbols"); | ||
const Blob = require("./blob"); | ||
|
||
module.exports = function (core) { | ||
const Blob = core.Blob; | ||
|
||
class File extends Blob { | ||
constructor(fileBits, fileName) { | ||
super(fileBits, arguments[2]); | ||
if (!(this instanceof File)) { | ||
throw new TypeError("DOM object constructor cannot be called as a function."); | ||
} | ||
this[fileSymbols.name] = fileName.replace(/\//g, ":"); | ||
} | ||
get name() { | ||
return this[fileSymbols.name]; | ||
module.exports = class File extends Blob { | ||
constructor(fileBits, fileName) { | ||
super(fileBits, arguments[2]); | ||
if (!(this instanceof File)) { | ||
throw new TypeError("DOM object constructor cannot be called as a function."); | ||
} | ||
this[fileSymbols.name] = fileName.replace(/\//g, ":"); | ||
} | ||
get name() { | ||
return this[fileSymbols.name]; | ||
} | ||
core.File = File; | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.