Modified a few HTMLElement methods needed for the TermTree.