Skip to main content

bound_input_kind

Function bound_input_kind 

Source
pub fn bound_input_kind(
    tag: Symbol,
    attrs: &[Attr<'_>],
    interner: &Interner,
) -> BoundInput
Expand description

Decide, from an element’s TAG and attributes, what a bind on it writes. See BoundInput.

★ THE TAG IS NOT DECORATION HERE. Asking the attributes alone cannot tell a <select multiple> from a <textarea> — neither carries a type — so both answered Value, and one of those answers was wrong in a way nothing reported.