Add dom implementation class.