W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2009

validator/httpd/cgi-bin check,1.678,1.679

From: Ville Skytta via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 11 Aug 2009 11:04:14 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Map9K-0006U9-Ac@lionel-hutz.w3.org>
Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv24915

Modified Files:
	check 
Log Message:
Fix is_xml() package scope issue introduced in rev 1.675.

Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.678
retrieving revision 1.679
diff -u -d -r1.678 -r1.679
--- check	30 Jul 2009 19:48:47 -0000	1.678
+++ check	11 Aug 2009 11:04:12 -0000	1.679
@@ -3024,7 +3024,7 @@
   my $xmlns_value = undef;
 
   # If in XML mode, find namespace used for each element.
-  if (&is_xml($self->{_file})) {
+  if (&W3C::Validator::MarkupValidator::is_xml($self->{_file})) {
     if (my $attr = $element->{Attributes}->{xmlns}) {
       $xmlns_value = "";
       # Try with SAX method
@@ -3118,7 +3118,7 @@
   # our parser OpenSP is not quite XML-aware, or XML Namespaces Aware,
   # so we filter out a few errors for now
 
-  my $is_xml = &is_xml($File);
+  my $is_xml = &W3C::Validator::MarkupValidator::is_xml($File);
 
   if ($is_xml and $err->{num} eq '108' and $err->{msg} =~ m{ "xmlns:\S+"}) {
     # the error is about a missing xmlns: attribute definition"
Received on Tuesday, 11 August 2009 11:04:23 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:37 UTC