If a page has a section such as[1]
= Português =
or[2]
== mediaWiki.loader ==
then the ids generated by MediaWiki are "Portugu.C3.AAs" and "mediaWiki.loader" respectively. This makes it impossible to select those specific sections by using
jQuery( '#Portugu.C3.AAs' );
or
jQuery( '#mediaWiki.loader' );
or equivalently in CSS,
#Portugu.C3.AAs { color: red; }
since the dot "." is interpreted as a class selector.
- Why does MW adds those dots in the first example?
- Would it be possible to fix this?
[1] http://pt.wiktionary.org/w/index.php?title=escudismo&oldid=278201&uselang=en
[2] [[mw:RL/DM#mediaWiki.loader]]
Version: 1.20.x
Severity: enhancement