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

validator/httpd/cgi-bin check,1.693,1.694

From: Ville Skytta via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 16 Sep 2009 16:08:25 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Mnx3R-00029K-F8@lionel-hutz.w3.org>
Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv6253

Modified Files:
	check 
Log Message:
Use textContent() instead of toString()+regex to get validator.nu error
messages as text, fixes #6302.


Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.693
retrieving revision 1.694
diff -u -d -r1.693 -r1.694
--- check	15 Sep 2009 19:24:40 -0000	1.693
+++ check	16 Sep 2009 16:08:23 -0000	1.694
@@ -1068,8 +1068,7 @@
       my @child_nodes =  $message_node->childNodes;
       foreach my $child_node (@child_nodes) {
         if ($child_node->localname eq "message") {
-          $html5_error_msg= $child_node->toString();
-          $html5_error_msg =~ s,</?[^>]*>,,gsi;
+          $html5_error_msg = $child_node->textContent();
         }
         if ($child_node->localname eq "elaboration") {
           $html5_error_expl = $child_node->toString();
Received on Wednesday, 16 September 2009 16:18:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:14 GMT