Author: wilson.jim.r
Description:
There is currently no way in MediaWiki to alter the list of acceptable HTML tags or attributes thereto. This information is hard coded into Sanitizer.php, and loaded into static variables - making them even harder to get to and modify.
I propose new hooks to allow extensions to modify the lists of acceptable HTML tags and attributes, or at least provide alternate lists in certain circumstances.
Any solution would also have to be sensitive to the need for extensions to be able to conditionally allow or disallow certain tags or attributes based on the context of the parse. Meaning that it is not sufficient to merely provide a window into the initial whitelist creation, but then continue to store said lists statically (unless the static allocation will be revisited as a result of extension execution).
A tentative patch will be supplied shortly.
Version: unspecified
Severity: enhancement