Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"representing the same bytes" #75

Open
domenic opened this issue Jul 2, 2016 · 2 comments
Open

"representing the same bytes" #75

domenic opened this issue Jul 2, 2016 · 2 comments

Comments

@domenic
Copy link
Member

domenic commented Jul 2, 2016

https://xhr.spec.whatwg.org/#interface-formdata

If value is a Blob object and not a File object, then set value to a new File object, representing the same bytes, whose name attribute value is "blob".

It's not clear what other properties are copied over. Per http://w3c-test.org/XMLHttpRequest/formdata-blob.htm, at the very least type is copied over. What about isClosed? What is lastModified set to?

@annevk
Copy link
Member

annevk commented Jul 4, 2016

This is a problem for a number of places that take Blob objects. They don't really define how them being closed is handled.

The other internal slot problems are specific to this API probably. Maybe File API should have some primitive to convert a Blob into a File, so whenever new stuff gets added they update that operation too.

@annevk
Copy link
Member

annevk commented Jan 12, 2017

@mkruisselbrink are you planning on exposing low-level hooks for Blob objects and such so we don't have to go through the IDL API to define basic things like this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants