Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed meta tag, title order for pre-xhtml compatibility.

Minor inline doc typo fix


git-svn-id: http://svn.php.net/repository/pear/packages/HTML_Page/trunk@145451 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit a792bc082f2b5dd70949cc32d0a1d5a8751cee9e 1 parent 1fed007
Klaus Guenther authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 Page.php
View
10 Page.php
@@ -424,7 +424,6 @@ function _generateHead()
$tab = $this->_getTab();
$strHtml = '<head>' . $lnEnd;
- $strHtml .= $tab . '<title>' . $this->getTitle() . '</title>' . $lnEnd;
// Generate META tags
foreach ($this->_metaTags as $type => $tag) {
@@ -436,6 +435,12 @@ function _generateHead()
}
}
}
+
+ // Generate the title tag.
+ // Pre-XHTML compatibility:
+ // This comes after meta tags because of possible
+ // http-equiv character set declarations.
+ $strHtml .= $tab . '<title>' . $this->getTitle() . '</title>' . $lnEnd;
// Generate stylesheet links
foreach ($this->_styleSheets as $strSrc => $strAttr ) {
@@ -450,7 +455,7 @@ function _generateHead()
foreach ($this->_style as $type => $content) {
$strHtml .= $tab . '<style type="' . $type . '">' . $lnEnd;
- // This is for full XHTML supporte.
+ // This is for full XHTML support.
if ($this->_mime == 'text/html' ) {
$strHtml .= $tab . $tab . '<!--' . $lnEnd;
} else {
@@ -479,7 +484,6 @@ function _generateHead()
}
// See above note
-
if ($this->_mime == 'text/html' ) {
$strHtml .= $tab . $tab . '-->' . $lnEnd;
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.