- From: Ville Skytta via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 16 Sep 2009 17:32:09 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv31252
Modified Files:
check
Log Message:
Eliminate some redundant ifs.
Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.694
retrieving revision 1.695
diff -u -d -r1.694 -r1.695
--- check 16 Sep 2009 16:08:23 -0000 1.694
+++ check 16 Sep 2009 17:32:07 -0000 1.695
@@ -1056,10 +1056,10 @@
}
}
- if($attribute->name eq "last-column") {
+ elsif ($attribute->name eq "last-column") {
$html5_error_col = $attribute->getValue();
}
- if($attribute->name eq "last-line") {
+ elsif ($attribute->name eq "last-line") {
$html5_error_line = $attribute->getValue();
}
@@ -1070,7 +1070,7 @@
if ($child_node->localname eq "message") {
$html5_error_msg = $child_node->textContent();
}
- if ($child_node->localname eq "elaboration") {
+ elsif ($child_node->localname eq "elaboration") {
$html5_error_expl = $child_node->toString();
$html5_error_expl =~ s,</?elaboration>,,gi;
$html5_error_expl = "\n<div class=\"ve html5\">$html5_error_expl</div>\n";
Received on Wednesday, 16 September 2009 17:32:17 UTC