Added some W3C dom methods to be used later.