mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
fix(xpath): pass in correct context node for // and / in predicates (#37434)
For example `div[count(//p)]` should count all `<p>` elements in the document, not just the ones underneath the `<div>`. Testing: WPT tests cover this, the fix makes two more test pass. Signed-off-by: Ville Lindholm <ville@lindholm.dev>
This commit is contained in:
parent
56e901d0c2
commit
07c33a180c
3 changed files with 33 additions and 15 deletions
3
tests/wpt/meta/domxpath/predicates.html.ini
vendored
3
tests/wpt/meta/domxpath/predicates.html.ini
vendored
|
@ -1,3 +0,0 @@
|
|||
[predicates.html]
|
||||
[An expression in a predicate should not change the context node]
|
||||
expected: FAIL
|
|
@ -23,8 +23,5 @@
|
|||
[Select SVG element with non-ascii attribute 2]
|
||||
expected: FAIL
|
||||
|
||||
[xmlns attribute]
|
||||
expected: FAIL
|
||||
|
||||
[svg element with XLink attribute]
|
||||
expected: FAIL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue