Fixed ancestor-or-self relative to attributes
Per libxml behaviour this axis shouldn't match attributes when using "ancestor-or-self::*".
This commit is contained in:
1 parent
d5aad9c1c9
commit
70bea2071c
2 files changed
+7
-1
No files matched your search
@@ -23,6 +23,12 @@ describe Oga::XPath::Compiler do
|
||||
evaluate_xpath(@a1.attribute('foo')).should == node_set(@a1)
|
||||
end
|
||||
end
|
||||
|
||||
describe 'ancestor-or-self::foo' do
|
||||
it 'returns an empty NodeSet' do
|
||||
evaluate_xpath(@a1.attribute('foo')).should == node_set
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe 'relative to an element' do
|
||||
|
||||
Reference in new issue
Block a user