Restore UA sniffs for editor bugs that still exist in IE11

Fixes #18240.

(cherry picked from commit c755bc0f9c7b8ebe32f278ecc977cd0c489335de)