mirror of
https://github.com/servo/servo.git
synced 2025-09-22 12:50:08 +01:00
Allow whitespace around path expressions in xpath (#39410)
Previously servo would allow whitespace in between components of an xpath expression, but not around it. Testing: New web platform tests start to pass Part of https://github.com/servo/servo/issues/34527 --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
629b7dba3d
commit
bbceb0faa4
2 changed files with 2 additions and 8 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue