#98 Content-Type for XHTML 1.0

open
nobody
None
5
2014-08-24
2006-01-14
No

Content-Type for XHTML 1.0 is 'text/html', it is
not 'text/xml'.

    # Affiche tag meta robots
    if ($MetaRobot) { print "<meta

name=\"robots\" content=\"".($FrameName
eq 'mainleft'?'no':'')."index,nofollow\"$endtag\n"; }
else { print "<meta name=\"robots\"
content=\"noindex,nofollow\"$endtag\n"; }

  • Affiche tag meta content-type

    if ($BuildReportFormat eq 'xhtml' ||
    

    $BuildReportFormat eq 'xml') { print ($ENV
    {'HTTP_USER_AGENT'}=~/MSIE|Googlebot/i?"<meta http-="" equiv="\\"content-type\\"" content="\\"text/html;" charset=". ($PageCode?$PageCode:" iso-8859-1")."\\"=""/>\n":"<meta
    http-equiv=\"content-type\" content=\"text/xml;
    charset=".($PageCode?$PageCode:"iso-8859-
    1")."\"$endtag\n"); }

  • Affiche tag meta content-type

    if ($BuildReportFormat eq 'xhtml' ||
    

    $BuildReportFormat eq 'xml') { print ($ENV
    {'HTTP_USER_AGENT'}=~/MSIE|Googlebot/i?"<meta http-="" equiv="\\"content-type\\"" content="\\"text/html;" charset=". ($PageCode?$PageCode:" iso-8859-1")."\\"=""/>\n":"<meta
    http-equiv=\"content-type\" content=\"text/html;
    charset=".($PageCode?$PageCode:"iso-8859-
    1")."\"$endtag\n"); }

    else { print "<meta http-
    

    equiv=\"content-type\" content=\"text/html; charset=".
    ($PageCode?$PageCode:"iso-8859-1")."\"$endtag\n"; }

    if ($Expires)  { print "<meta http-
    

    equiv=\"expires\" content=\"".(gmtime
    ($starttime+$Expires))."\"$endtag\n"; }

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks