diff --git a/components/script/xpath/parser.rs b/components/script/xpath/parser.rs index 9294a25a28f..f1f38ea0da5 100644 --- a/components/script/xpath/parser.rs +++ b/components/script/xpath/parser.rs @@ -512,7 +512,7 @@ fn union_expr(input: &str) -> IResult<&str, Expr> { } fn path_expr(input: &str) -> IResult<&str, Expr> { - alt(( + ws(alt(( // "//" RelativePathExpr map( pair(tag("//"), move |i| relative_path_expr(true, i)), @@ -545,7 +545,7 @@ fn path_expr(input: &str) -> IResult<&str, Expr> { ), // RelativePathExpr move |i| relative_path_expr(false, i), - )) + ))) .parse(input) } diff --git a/tests/wpt/meta/domxpath/lexical-structure.html.ini b/tests/wpt/meta/domxpath/lexical-structure.html.ini deleted file mode 100644 index 200dac9f2ee..00000000000 --- a/tests/wpt/meta/domxpath/lexical-structure.html.ini +++ /dev/null @@ -1,6 +0,0 @@ -[lexical-structure.html] - [Literal: Only ' and " should be handled as literal quotes.] - expected: FAIL - - [ExprWhitespace: Only #x20 #x9 #xD or #xA must be handled as a whitespace.] - expected: FAIL