We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faff1c9 commit 99a4b2cCopy full SHA for 99a4b2c
Tests/CssSelectorConverterTest.php
@@ -59,7 +59,7 @@ public function getCssToXPathWithoutPrefixTestData()
59
array('h1', 'h1'),
60
array('foo|h1', 'foo:h1'),
61
array('h1, h2, h3', 'h1 | h2 | h3'),
62
- array('h1:nth-child(3n+1)', "*/*[name() = 'h1' and (position() - 1 >= 0 and (position() - 1) mod 3 = 0)]"),
+ array('h1:nth-child(3n+1)', "*/*[(name() = 'h1') and (position() - 1 >= 0 and (position() - 1) mod 3 = 0)]"),
63
array('h1 > p', 'h1/p'),
64
array('h1#foo', "h1[@id = 'foo']"),
65
array('h1.foo', "h1[@class and contains(concat(' ', normalize-space(@class), ' '), ' foo ')]"),
0 commit comments