fn parse_one_simple_selector<'i, 't, P, Impl>(
    parser: &P,
    input: &mut Parser<'i, 't>,
    state: SelectorParsingState
) -> Result<Option<SimpleSelectorParseResult<Impl>>, ParseError<'i, P::Error>>where
    P: Parser<'i, Impl = Impl>,
    Impl: SelectorImpl,
Expand description

Parse a simple selector other than a type selector.

  • Err(()): Invalid selector, abort
  • Ok(None): Not a simple selector, could be something else. input was not consumed.
  • Ok(Some(_)): Parsed a simple selector or pseudo-element