Steps to replicate the issue (include links if applicable):
- Create a page with this content (I realize this is not valid html, I first reproduced this with an image that had a link on it):
__TOC__ ==<abbr><abbr></abbr></abbr><abbr><abbr title="abbr title">This is in an abbr</abbr></abbr> Test==
- Look at the TOC
What happens?:
_Some_ but not all abbr elements make it into the TOC
What should have happened instead?:
All elements not in $allowedTags inside the function should be removed.
For reference:
$allowedTags = [ 'span', 'sup', 'sub', 'bdi', 'i', 'b', 's', 'strike', 'q' ];
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
MediaWiki 1.43.3 on my server, also tested on testwiki at https://test.wikipedia.org/wiki/User:FO-nTTaX
Other information (browser name/version, screenshots, etc.):
I don't think this is security relevant as it still would need to survive the parser and the sanitizer, but it's not the correct behaviour in my opinion.
