It search document begins from input domObject and goes down the DOM tree until it find first node of input className and returns that object.