Implement missing interfaces of File DOM object

This commit is contained in:
Zhen Zhang 2016-05-10 20:23:17 +08:00
parent f43009333f
commit 87fec3e026
8 changed files with 71 additions and 141 deletions

View file

@ -128,7 +128,7 @@ impl FormData {
Some(fname) => {
let global = self.global();
let name = DOMString::from(fname.0);
Root::upcast(File::new(global.r(), value, name))
Root::upcast(File::new(global.r(), value.get_data().clone(), name, None, ""))
}
None => Root::from_ref(value)
}