API to the DOM