List of steps to reproduce (step by step, including full links if applicable):
- enable realtime preview
- follow an edit link with a valid lintid (e.g. by clicking one of the edit links on Special:LintErrors)
What happens?:
The wikitext editor area loads with the appropriate part of the wikitext pre-selected; then the highlighting disappears when the preview shows up.
What should have happened instead?:
Loading the preview should not affect text selection.
Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:
Seen on a Wikimedia wiki in Chrome 102.