https://bugzilla.wikimedia.org/show_bug.cgi?id=28658
Bug #: 28658
Summary: Use MHTML URLs as an alternative to data URLs in IE <
8
Product: MediaWiki
Version: wikimedia-deployment
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Resource Loader
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
http://www.phpied.com/mhtml-when-you-need-data-uris-in-ie7-and-under/
With this technique, we could output something like:
background-image: url(data:image/png;base64,iVBORw .... ); // For normal
browsers
background-image:
url(mhtml:http://example.com/w/load.php?modules=blah&only=mhtmlimages!foo) !ie;
// For IE. Can also use star hack as suggested in the article
Where load.php?modules=blah&only=mhtmlimages would output something like:
/*
Content-Type: multipart/related; boundary="_RLFTW"
--_RLFTW
Content-Location:foo
Content-Transfer-Encoding:base64
iVBORw...
--_RLFTW
Content-Location:bar
Content-Transfer-Encoding:base64
R0lGOD...
*/
There seem to be some issues with this on Vista, but we'll cross that bridge
when we come to it. For now this is a nice-to-have for ResourceLoader 2.0.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l