mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
PR review 2
Signed-off-by: Ville Lindholm <ville@lindholm.dev>
This commit is contained in:
parent
bc72d7e536
commit
74557e352d
2 changed files with 2 additions and 5 deletions
|
@ -95,10 +95,7 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
fn is_primitive(&self) -> bool {
|
fn is_primitive(&self) -> bool {
|
||||||
match self {
|
self.as_ref().is_some_and(|t| T::is_primitive(t))
|
||||||
Some(expr) => expr.is_primitive(),
|
|
||||||
None => false,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
tests/wpt/tests/domxpath/fn-id.html
vendored
2
tests/wpt/tests/domxpath/fn-id.html
vendored
|
@ -44,4 +44,4 @@ testIdFunction('id("")', '<root><div id="">Empty ID</div></root>', []);
|
||||||
// Test whitespace in ID string
|
// Test whitespace in ID string
|
||||||
testIdFunction('id(" test1 ")', '<root><div id="test1">Match</div></root>', ['test1']);
|
testIdFunction('id(" test1 ")', '<root><div id="test1">Match</div></root>', ['test1']);
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue