Skip to content

Capture attribute only supports boolean values #11419

Closed
@maxschmeling

Description

@maxschmeling

This is a follow-up to #4784.

The capture attribute on input elements is currently supported, but it is configured as a HAS_BOOLEAN_VALUE attribute:

This causes

<input type="file" capture="user" />

to render as

<input type="file" capture />

The capture attribute supports strings though: https://www.w3.org/TR/html-media-capture/#the-capture-attribute

This is very important for being able to configure the default camera selected on mobile devices.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions