Remove HTMLMainElement

Fix #2541