-
Notifications
You must be signed in to change notification settings - Fork 36
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
Should we have an API to return the set of readable/writable data types? #67
Comments
See related issue: #30 |
Now that Safari 13.1 is shipping significant support, this would be rather useful. For example:
I maintain However:
The best I can think of right now is to try copying and catch if it fails, but the spec doesn't specify that the browser should throw an error on unsupported data types, and different browsers currently behave differently (at the moment, Chrome errors and Safari ignores it). Note that #30 and #97 are about the same thing; these issues should probably all be deduplicated into one. |
We should consider defining a way for JS to determine the set of data types that the UA supports for reading/writing.
Currently, we have a list of supported types in 10. Mandatory data types. But some UAs may choose to support a larger set.
In addition, note that the set of supported types will be different for the legacy (execCommand-based) APIs and the new Async APIs, because the newer APIs can safely support a larger set of types.
The text was updated successfully, but these errors were encountered: