Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #5 from squeeks/master

Fix to broken XPath tests
  • Loading branch information...
commit 125ac68119f85b1a735f83cd3779b8821cee282d 2 parents 28227d8 + c1be7df
@tomill authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 t/11_exp_to_xpath.t
View
8 t/11_exp_to_xpath.t
@@ -99,19 +99,19 @@ E > F@foo
--- exp
E:first-child@foo
--- xpath
-//*[1]/self::E/@foo
+//E[count(preceding-sibling::*) = 0 and parent::*]/@foo
===
--- exp
F E:first-child@foo
--- xpath
-//F//*[1]/self::E/@foo
+//F//E[count(preceding-sibling::*) = 0 and parent::*]/@foo
===
--- exp
F > E:first-child@foo
--- xpath
-//F/*[1]/self::E/@foo
+//F/E[count(preceding-sibling::*) = 0 and parent::*]/@foo
===
--- exp
@@ -177,7 +177,7 @@ E#myid@foo
--- exp
E:nth-child(1)@foo
--- xpath
-//E[count(preceding-sibling::*) = 0]/@foo
+//E[count(preceding-sibling::*) = 0 and parent::*]/@foo
===
--- exp
Please sign in to comment.
Something went wrong with that request. Please try again.