﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
14603	"Function ""contains "" in elementpath don't exclude root element if it is search from top"	Ben Ng		"== Steps to reproduce ==

1. Call the contains function of a elementpath with excludeRoot and fromTop are both TRUE

== Expected result ==
The root element should be excluded.

== Actual result ==
The deepest element is excluded. 
It is because the elements array is reversed when fromTop is true. The root element is moved to the first element of the array instead of the last one. The for loop exclude the last element if excludeRoot is true.




"	Bug	closed	Normal		General	4.0	fixed		
