Skip to content

specify unique behavior for label and value attributes on option in datalist #568

@scottaohara

Description

@scottaohara

within a select element, if an option has a label attribute and child content, the label attribute value renders and the child content does not. the value attribute, which is not rendered for select elements, can also be rendered for datalist options, which then also needs to be considered for what the visible name for these options would be.

but within a datalist, if an option has both a label attribute and child content, both will render - and again, if a value attribute is in the mix, then that will often take precedent over one of the other labeling mechanisms.

browsers expose this differently - where chromium exposes both pieces of information, safari renders both but only exposes one, and firefox only renders and exposes one of the two.

this needs cleanup

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions