(xpath_do): No longer strip the HTML element in order

to allow tests for meta data.
This commit is contained in:
Alex Schroeder
2008-06-13 14:41:13 +00:00
parent 788502485b
commit 30df9cd1e4

View File

@@ -154,7 +154,7 @@ sub xpath_do {
} elsif (ok(&$check($nodelist->size()), name(&$check(1) ? $test : "not $test"))) {
$result .= $nodelist->string_value();
} else {
$page =~ s/^.*?<body/<body/s;
$page =~ s/^.*?<html/<html/s;
diag($message, substr($page,0,30000)) unless $page_shown;
$page_shown = 1;
}