Commit 7fa12b41 authored by John Resig's avatar John Resig

Rev [1827] broke the two XPath sibling selectors.

parent c5129843
...@@ -193,8 +193,8 @@ test("basic xpath", function() { ...@@ -193,8 +193,8 @@ test("basic xpath", function() {
t( "Attribute Exists", "//a[@title]", ["google"] ); t( "Attribute Exists", "//a[@title]", ["google"] );
t( "Attribute Equals", "//a[@rel='bookmark']", ["simon1"] ); t( "Attribute Equals", "//a[@rel='bookmark']", ["simon1"] );
t( "Parent Axis", "//p/..", ["main","foo"] ); t( "Parent Axis", "//p/..", ["main","foo"] );
t( "Sibling Axis", "//p/../", ["firstp","ap","foo","first","firstUL","empty","form","floatTest","iframe","lengthtest","sndp","en","sap"] ); t( "Sibling Axis", "//p/../", ["firstp","ap","foo","first","firstUL","empty","form","floatTest","iframe","lengthtest","table","sndp","en","sap"] );
t( "Sibling Axis", "//p/../*", ["firstp","ap","foo","first","firstUL","empty","form","floatTest","iframe","lengthtest","sndp","en","sap"] ); t( "Sibling Axis", "//p/../*", ["firstp","ap","foo","first","firstUL","empty","form","floatTest","iframe","lengthtest","table","sndp","en","sap"] );
t( "Has Children", "//p[a]", ["firstp","ap","en","sap"] ); t( "Has Children", "//p[a]", ["firstp","ap","en","sap"] );
$("#foo").each(function() { $("#foo").each(function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment