mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Store args of tree pseudo-elements as Atom.
This commit is contained in:
parent
89c1892b30
commit
a2182f8dc3
3 changed files with 20 additions and 20 deletions
|
@ -392,7 +392,7 @@ impl<'a, 'i> ::selectors::Parser<'i> for SelectorParser<'a> {
|
|||
loop {
|
||||
let location = parser.current_source_location();
|
||||
match parser.next() {
|
||||
Ok(&Token::Ident(ref ident)) => args.push(ident.as_ref().to_owned()),
|
||||
Ok(&Token::Ident(ref ident)) => args.push(Atom::from(ident.as_ref())),
|
||||
Ok(&Token::Comma) => {},
|
||||
Ok(t) => return Err(location.new_unexpected_token_error(t.clone())),
|
||||
Err(BasicParseError { kind: BasicParseErrorKind::EndOfInput, .. }) => break,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue