@@ -149,13 +149,14 @@ public function loadXML($source, $options = LIBXML_NONET) {
149
149
* Wrapper to DOMDocument loadHTMLFile with exception handling.
150
150
* Returns true on success to satisfy the compatibilty of the original DOM Api
151
151
*
152
- * @param string $fname html file to load
152
+ * @param string $fname html file to load
153
+ * @param integer $options Options bitmask (@see DOMDocument::loadHTMLFile)
153
154
*
154
155
* @return boolean
155
156
*/
156
- public function loadHTMLFile ($ fname ) {
157
+ public function loadHTMLFile ($ fname, $ options = NULL ) {
157
158
$ this ->xp = null ;
158
- $ tmp = @parent :: loadHTMLFile ($ fname );
159
+ $ tmp = @parent :: loadHTMLFile ($ fname, $ options );
159
160
if (!$ tmp ) {
160
161
throw new fDOMException ("loading html file ' $ fname' failed " , fDOMException::LoadError);
161
162
}
@@ -166,13 +167,14 @@ public function loadHTMLFile($fname) {
166
167
* Wrapper to DOMDocument loadHTML with exception handling
167
168
* Returns true on success to satisfy the compatibilty of the original DOM Api
168
169
*
169
- * @param string $source html source code
170
+ * @param string $source html source code
171
+ * @param integer $options Options bitmask (@see DOMDocument::loadHTML)
170
172
*
171
173
* @return boolean
172
174
*/
173
- public function loadHTML ($ source ) {
175
+ public function loadHTML ($ source, $ options = NULL ) {
174
176
$ this ->xp = null ;
175
- $ tmp = @parent :: loadHTML ($ source );
177
+ $ tmp = @parent :: loadHTML ($ source, $ options );
176
178
if (!$ tmp ) {
177
179
throw new fDOMException ('parsing html string failed ' , fDOMException::ParseError);
178
180
}
0 commit comments