Enable $wgExperimentalHtmlIds by default
authorAryeh Gregor <simetrical@users.mediawiki.org>
Thu, 5 Aug 2010 20:30:49 +0000 (20:30 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Thu, 5 Aug 2010 20:30:49 +0000 (20:30 +0000)
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
includes/DefaultSettings.php

index 50db9cf..1c3a672 100644 (file)
@@ -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
index bfdb6da..532f624 100644 (file)
@@ -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