Change <em> and <strong> to be HTMLElement (fixes #1704)