Function selectors::parser::parse_qualified_name

source ยท
fn parse_qualified_name<'i, 't, P, Impl>(
    parser: &P,
    input: &mut Parser<'i, 't>,
    in_attr_selector: bool,
) -> Result<OptionalQName<'i, Impl>, ParseError<'i, P::Error>>
where P: Parser<'i, Impl = Impl>, Impl: SelectorImpl,
Expand description
  • Err(()): Invalid selector, abort
  • Ok(None(token)): Not a simple selector, could be something else. input was not consumed, but the token is still returned.
  • Ok(Some(namespace, local_name)): None for the local name means a * universal selector