| Index: Source/core/xml/XPathStep.cpp | 
| diff --git a/Source/core/xml/XPathStep.cpp b/Source/core/xml/XPathStep.cpp | 
| index e98c81d0f93293c3916168d25183f639fe3288c8..1853edc05448a28ef956cc08880b0c9dcfc668f0 100644 | 
| --- a/Source/core/xml/XPathStep.cpp | 
| +++ b/Source/core/xml/XPathStep.cpp | 
| @@ -331,7 +331,7 @@ void Step::nodesInAxis(EvaluationContext& evaluationContext, Node* context, Node | 
|  | 
| case FollowingAxis: | 
| if (context->isAttributeNode()) { | 
| -            for (Node& p : NodeTraversal::fromNext(*toAttr(context)->ownerElement())) { | 
| +            for (Node& p : NodeTraversal::startsAfter(*toAttr(context)->ownerElement())) { | 
| if (nodeMatches(evaluationContext, &p, FollowingAxis, nodeTest())) | 
| nodes.append(&p); | 
| } | 
|  |