summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt Farina <[email protected]>2013-05-30 13:03:50 -0400
committerMatt Farina <[email protected]>2013-05-30 13:03:50 -0400
commit966f0a9954f1ebc1d6900726a88f5527e75eed69 (patch)
tree23dc4e42e0e5dacd92daa758d169051ac988edcb /src
parent8bf7cff947f210fd694e7d6f35ef4d01d35f880f (diff)
Removed the options argument from the parser since they aren't being used.
Diffstat (limited to 'src')
-rw-r--r--src/HTML5.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/HTML5.php b/src/HTML5.php
index 47c646c..df552f4 100644
--- a/src/HTML5.php
+++ b/src/HTML5.php
@@ -37,13 +37,11 @@ class HTML5 {
* The path to the file to parse. If this is a resource, it is
* assumed to be an open stream whose pointer is set to the first
* byte of input.
- * @param array $options
- * An array of options.
* @return \DOMDocument
* A DOM document. These object type is defined by the libxml
* library, and should have been included with your version of PHP.
*/
- public static function load($file, $options = NULL) {
+ public static function load($file) {
// Handle the case where file is a resource.
if (is_resource($file)) {
@@ -61,14 +59,13 @@ class HTML5 {
* Take a string of HTML 5 (or earlier) and parse it into a
* DOMDocument.
*
- *
- * @param array $options
- * An array of options.
+ * @param string $string
+ * A html5 document as a string.
* @return \DOMDocument
* A DOM document. DOM is part of libxml, which is included with
* almost all distribtions of PHP.
*/
- public static function loadHTML($string, $options = NULL) {
+ public static function loadHTML($string) {
$input = new StringInputStream($string);
return self::parse($input);
}