compute the rights node in HTML Tree