Currently, I am working to improve redirect page HTML and fix https://phabricator.wikimedia.org/T380530 (Redirect page text is a list and shouldn't be)
As part of fixing this task, I need to pretty heavily change existing CSS and introduce better HTML markup. Various existing tests for redirect pages across extensions rely currently on `class="redirectMsg"` being present in HTML output. Since this is flimsy, my idea is to keep this class for client-side users on some component but to change the tests to check for presence of something like `typeof="mw:RedirectPage"` attribute instead, similar to other markup in Parsoid. That should make those tests resilient to any future markup changes.
Unit tests that currently use this:
https://codesearch.wmcloud.org/search/?q=redirectMsg&files=&excludeFiles=&r…
Can someone from the Content Transform team please comment (preferably on Phabricator) on whether they agree with this proposal?
Regards,
stjn