pub fn parse_a_component_value(input: &str) -> Option<ComponentValue>Expand description
§5.4.8 (L2138-2168) Parse a component value.
§Algorithm
- Normalize input.
- Discard whitespace.
- If input is empty → syntax error (
None). - Consume a component value, let
valuebe the return value. - Discard whitespace.
- If input is empty → return
value; otherwise syntax error (None).