Macro script::dom::macros::make_enumerated_getter

source ยท
macro_rules! make_enumerated_getter {
    ($attr:ident,
        $htmlname:tt,
        $($choices:literal)|+,
        missing => $missing:literal,
        invalid => $invalid:literal
    ) => { ... };
    ($attr:ident,
        $htmlname:tt,
        $($choices:literal)|+,
    ) => { ... };
    ($attr:ident,
        $htmlname:tt,
        $($choices:literal)|+,
        invalid => $invalid:literal
    ) => { ... };
    ($attr:ident,
        $htmlname:tt,
        $($choices:literal)|+,
        missing => $missing:literal,
    ) => { ... };
}
Expand description

Implements the To determine the state of an attribute steps from https://html.spec.whatwg.org/multipage/#keywords-and-enumerated-attributes