Skip to content

Best practices for feature detection of DOM API #137

@alice

Description

@alice

One example: WebXR have a feature detection method, supportsSession(), which returns a promise which rejects if the session type is not supported.

Should this return a Promise<boolean>, on the principle that feature detection shouldn't throw?

Also, what other best practices are there for feature detection?

cc @torgo

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions