From 40a41100300c02abf95328e303ec4400de7a5fd9 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Thu, 5 Aug 2010 20:30:49 +0000 Subject: [PATCH] Enable $wgExperimentalHtmlIds by default MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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. --- RELEASE-NOTES | 3 +++ includes/DefaultSettings.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 -- 2.20.1