Having a new HTML element to grant permissions for APIs that are restricted to JavaScript feels a little superfluous.
If this is a path forward for adding such elements in the future, for example where a <video tag can access a webcam directly, or an <location tag can show current location, maybe it would make more sense, but I think that it should be part of that proposal.
Even then, it can be argued that it could be reduced to an attribute for those elements, or left out completely to have users grant permissions on first use as is the status quo in most browsers.
Having a new HTML element to grant permissions for APIs that are restricted to JavaScript feels a little superfluous.
If this is a path forward for adding such elements in the future, for example where a
<videotag can access a webcam directly, or an<locationtag can show current location, maybe it would make more sense, but I think that it should be part of that proposal.Even then, it can be argued that it could be reduced to an attribute for those elements, or left out completely to have users grant permissions on first use as is the status quo in most browsers.