The easiest way of implementing https://wicg.github.io/sanitizer-api/#handle-funky-elements in Gecko will also automatically sanitize the `href` attribute from svg:a and MathML elements. Maybe something to consider.