apis/dom library