implementation HTMLElement.getAttributes