Permalink
Browse files

Add setBodyAttributes wrapper for setAttributes.Overwrites/deletes t

git-svn-id: http://svn.php.net/repository/pear/packages/HTML_Page/trunk@154532 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 37a0836 commit 9d594aea7d6b4bde72ea78cf35e57cfe84c5772a Klaus Guenther committed Mar 25, 2004
Showing with 52 additions and 6 deletions.
  1. +14 −1 Page.php
  2. +38 −5 package.xml
View
@@ -883,7 +883,8 @@ function getTitle()
} // end func getTitle
/**
- * Sets the content of the <body> tag. If content exists, it is overwritten.
+ * Sets the content of the <body> tag.
+ * If content exists, it is overwritten.
* If you wish to use a "safe" version, use {@link addBodyContent}
* Objects must have a toString method.
*
@@ -907,6 +908,18 @@ function unsetBody()
} // end unsetBody
/**
+ * Sets the attributes of the <body> tag.
+ * If attributes exist, they are overwritten.
+ *
+ * @param array $attributes <body> tag attributes.
+ * @access public
+ */
+ function setBodyAttributes($attributes)
+ {
+ $this->setAttributes($attributes);
+ } // end setBodyAttributes
+
+ /**
* Defines if the document should be cached by the browser. Defaults to false.
*
* @param string $cache Options are currently 'true' or 'false'. Defaults to 'false'.
View
@@ -31,8 +31,8 @@ The PEAR::HTML_Page package provides a simple interface for generating an XHTML
</maintainer>
</maintainers>
<release>
- <version>2.0.0RC2</version>
- <date>2003-11-03</date>
+ <version>2.0.0RC3</version>
+ <date>2003-03-24</date>
<state>beta</state>
<notes>
Note: This major release breaks BC!
@@ -53,10 +53,14 @@ Ideas for use:
* Use to validate the output of a class for XHTML compliance
* Quick prototyping using PEAR packages is now a breeze
+New features:
+* HTML 4.0 doctype support
+* #814 (Feature request: prependBodyContent)
+
Bugfixes:
-* Fixed typos
-* Fixed inline docs and examples
-* Removed error raising in constructor
+* #800 (Output "Object" prior to HTML if doctype is unknown)
+* #951 (unset META tag was not possible; now use unsetMetaData)
+* Fixed meta tag, title order for pre-XHTML compatibility
</notes>
<filelist>
<dir name="/" baseinstalldir="HTML">
@@ -78,6 +82,35 @@ Bugfixes:
</release>
<changelog>
<release>
+ <version>2.0.0RC2</version>
+ <date>2003-11-03</date>
+ <state>beta</state>
+ <notes>
+Note: This major release breaks BC!
+
+This release is completely XHTML compliant, and has some great features:
+* Line ending style
+* Full charset support
+* Doctype definitions
+* Namespace definitions
+* Mime encoding declaration
+* Global document language
+* Full META tag support, including "http-equiv"
+* Suport for stylesheet and script declarations in the head section
+* Support for linked stylesheets and scripts (including CSS 2.0 media definitions)
+* Can output directly to a file
+
+Ideas for use:
+* Use to validate the output of a class for XHTML compliance
+* Quick prototyping using PEAR packages is now a breeze
+
+Bugfixes:
+* Fixed typos
+* Fixed inline docs and examples
+* Removed error raising in constructor
+ </notes>
+ </release>
+ <release>
<version>2.0.0RC1</version>
<date>2003-10-31</date>
<state>beta</state>

0 comments on commit 9d594ae

Please sign in to comment.