Manual:$wgEnforceHtmlIds

Details
Allow id's that don't conform to HTML4 backward compatibility requirements.

This is currently for testing; if all goes well, this option will be removed and the functionality will be enabled universally.