From: Aryeh Gregor Date: Thu, 5 Aug 2010 20:30:49 +0000 (+0000) Subject: Enable $wgExperimentalHtmlIds by default X-Git-Tag: 1.31.0-rc.0~35687 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=40a41100300c02abf95328e303ec4400de7a5fd9;p=lhc%2Fweb%2Fwiklou.git Enable $wgExperimentalHtmlIds by default This will result in much prettier anchors, which should actually be intelligible in foreign languages. For instance, for a section named "שלום", the URL will end in "#שלום" instead of "#.D7.A9.D7.9C.D7.95.D7.9D". Old links will still work, since the legacy anchors are still being output too. This has been enabled on TranslateWiki since January, and there have been zero complaints. I tested just now in IE6, Firefox 3.6, Firefox 4.0, Chrome dev channel, and Opera 10.60, and all work. I tested Opera 10.50 and IE8 some months ago as well. A test case is at: http://www.mediawiki.org/wiki/User:Simetrical/Id_test (A lot of the tests are expected to fail because they already fail anyway.) Earlier testing indicated that Opera 10.10 wouldn't work correctly, but that's negligible by now compared to the readability improvements for foreign languages. Additional testing would be appreciated, particularly in IE7, IE8, and IE9 in their various compatibility modes, but I hope this should be good to go by now. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 50db9cf64f..1c3a6723d4 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -135,6 +135,9 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 23848) Add {{ARTICLEPATH}} Magic Word. * JavaScript-based password complexity checker on account creation and password change. +* The HTML ID's generated for sections are now much prettier when they contain + punctuation or non-English letters, so a section named "Hello?" will now + result in a URL ending in "#Hello?" rather than "#Hello.3F". === Bug fixes in 1.17 === * (bug 17560) Half-broken deletion moved image files to deletion archive diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index bfdb6da596..532f624492 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -2256,7 +2256,7 @@ $wgDisableOutputCompression = false; * and 8, and Opera 10.50, but it fails in Opera 10.10: Unicode IDs don't seem * to work as anchors. So not quite ready for general use yet. */ -$wgExperimentalHtmlIds = false; +$wgExperimentalHtmlIds = true; /** * Search form behavior for Vector skin only