Improve $wgExperimentalHtmlIds support