#14062: Website does not render properly in IE7 ----------------------------------+----------------------------------------- Reporter: wsiegrist@apple.com | Owner: jmpp@macports.org Type: defect | Status: new Priority: Normal | Milestone: Website & Documentation Component: website | Version: Resolution: | Keywords: ie7 windows content-type ----------------------------------+----------------------------------------- Changes (by ryandesign@macports.org): * cc: ryandesign@macports.org, marco@makeko.com (added) Comment: In the discussion on the mailing list, [http://lists.macosforge.org/pipermail/macports- users/2008-January/008526.html Mark Hattam said] the pages work fine if saved to the local disk and then opened in IE 7. It's just the web server headers messing it up. And Rainer said above that the patch works for him. So let's just start by fixing the web server headers and see what happens. Maybe we still need to remove the XML declaration for IE 6 but let's deal with that later; this ticket is for IE 7. Marco Battistella reminded me via personal email that we should be [http://www.xml.com/pub/a/2003/03/19/dive-into-xml.html looking at browser capabilities], not user agent strings. So let's do it like this instead: {{{ if (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml') !== false) { $contenttype = 'application/xhtml+xml'; } else { $contenttype = 'text/html'; } }}} -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14062#comment:6> MacPorts </projects/macports> Ports system for Mac OS