[MacPorts] #14062: Website does not render properly in IE7

MacPorts trac at macosforge.org
Fri Jan 25 10:07:20 PST 2008


#14062: Website does not render properly in IE7
----------------------------------+-----------------------------------------
  Reporter:  wsiegrist at apple.com  |       Owner:  jmpp at macports.org       
      Type:  defect               |      Status:  new                     
  Priority:  Normal               |   Milestone:  Website & Documentation 
 Component:  website              |     Version:                          
Resolution:                       |    Keywords:  ie7 windows content-type
----------------------------------+-----------------------------------------
Changes (by ryandesign at macports.org):

 * cc: ryandesign at macports.org, marco at 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


More information about the macports-tickets mailing list