Steps to replicate the issue (include links if applicable):
- Using https://www.mediawiki.org/ as an example
- Disable both WikiEditor and CodeMirror 6 on Special:Preferences
- Go to https://www.mediawiki.org/w/index.php?title=Extension_talk:VisualEditor/2016&action=edit&lintid=3681901
- Enable WikiEditor and disable CodeMirror 6 on Special:Preferences
- Again, go to https://www.mediawiki.org/w/index.php?title=Extension_talk:VisualEditor/2016&action=edit&lintid=3681901
- Enable CodeMirror 6 and disable WikiEditor on Special:Preferences
- Again, go to https://www.mediawiki.org/w/index.php?title=Extension_talk:VisualEditor/2016&action=edit&lintid=3681901
What happens?:
When both WikiEditor and CodeMirror are disabled, the textarea correctly scrolls to the error position. However, if either WikiEditor (except for Safari) or CodeMirror is enabled, the textarea does not scroll to the error position although the error range is selected.
A special case is opening the edit page with WikiEditor enabled and CodeMirror disabled using Safari. The textarea correctly scrolls to the error position. When clicking on the syntax highlighting button to enable CodeMirror, the textarea scrolls to the top again.
What should have happened instead?:
The textarea should always scroll to the error position.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
macOS Sonoma 14.8.1
Firefox 147.0.4
Chrome 145.0.7632.116
Edge 145.0.3800.70