User "NeilK" posted a comment on MediaWiki.r99444. Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/99444#c24087 Commit summary:
protocol-relative URLs for javascript. Could also be extended to relative urls of any kind -- now mw.Uri is just "relative" to the current URL Comment: The diff is confusing here, might be better to view without space changes: $ svn diff -x -b -c 99444 Essentially the whole Uri class now is moved inside of UriRelative. UriRelative() takes a URL, and returns a Uri parser which will be "relative" to that URL. mw.Uri is now just the URI parser which is relative to the current document location. This is done this way for testability, as you see we can inject a location into the parser without actually needing the browser functionality of document.location.href. Also we might one day want to calculate relative URLs this way, perhaps with the host, and with /../ in the path and so on. _______________________________________________ MediaWiki-CodeReview mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview
