lib: fix, use To_dom.of_element