Function selectors::parser::parse_type_selector
source · fn parse_type_selector<'i, 't, P, Impl, S>(
parser: &P,
input: &mut CssParser<'i, 't>,
state: SelectorParsingState,
sink: &mut S
) -> Result<bool, ParseError<'i, P::Error>>where
P: Parser<'i, Impl = Impl>,
Impl: SelectorImpl,
S: Push<Component<Impl>>,
Expand description
Err(())
: Invalid selector, abortOk(false)
: Not a type selector, could be something else.input
was not consumed.Ok(true)
: Length 0 (*|*
), 1 (*|E
orns|*
) or 2 (|E
orns|E
)