MDL-20700 whitespace terror returns

This commit is contained in:
Petr Skoda
2009-12-16 22:14:17 +00:00
parent b5d0cafc6f
commit 4454447d56
55 changed files with 415 additions and 417 deletions
+12 -12
View File
@@ -188,20 +188,20 @@ class CheckSpecifiedFieldsExpectation extends SimpleExpectation {
}
abstract class XMLStructureExpectation extends SimpleExpectation {
/**
* Parse a string as XML and return a DOMDocument;
* @param $html
* @return unknown_type
*/
/**
* Parse a string as XML and return a DOMDocument;
* @param $html
* @return unknown_type
*/
protected function load_xml($html) {
$prevsetting = libxml_use_internal_errors(true);
$parser = new DOMDocument();
if (!$parser->loadXML('<html>' . $html . '</html>')) {
$parser = new DOMDocument();
}
$prevsetting = libxml_use_internal_errors(true);
$parser = new DOMDocument();
if (!$parser->loadXML('<html>' . $html . '</html>')) {
$parser = new DOMDocument();
}
libxml_clear_errors();
libxml_use_internal_errors($prevsetting);
return $parser;
libxml_use_internal_errors($prevsetting);
return $parser;
}
}
/**