Implement the HTML DOM APIs