[master] refactor Form to inherit from HTMLElement