[LON-CAPA-cvs] cvs: loncom /homework radiobuttonresponse.pm

raeburn raeburn at source.lon-capa.org
Fri Feb 6 12:43:18 EST 2026


raeburn		Fri Feb  6 17:43:18 2026 EDT

  Modified files:              
    /loncom/homework	radiobuttonresponse.pm 
  Log:
  - WCAG 2 compliance
    Eliminate orphaned label tags as no radio button form elements are shown 
    in answer mode.
  
  
Index: loncom/homework/radiobuttonresponse.pm
diff -u loncom/homework/radiobuttonresponse.pm:1.162 loncom/homework/radiobuttonresponse.pm:1.163
--- loncom/homework/radiobuttonresponse.pm:1.162	Wed Dec 19 04:07:35 2018
+++ loncom/homework/radiobuttonresponse.pm	Fri Feb  6 17:43:18 2026
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # mutliple choice style responses
 #
-# $Id: radiobuttonresponse.pm,v 1.162 2018/12/19 04:07:35 raeburn Exp $
+# $Id: radiobuttonresponse.pm,v 1.163 2026/02/06 17:43:18 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -937,13 +937,6 @@
 		$result .= &mt('Incorrect');
 	    }
 
-	    # Web rendition encloses the 
-	    # item text in a label tag as well:
-
-	    if ($target eq 'web') {
-		$result .= '<label>';
-		$item_closetag = '</label>' . $item_closetag;
-	    }
 	    $result .= $Apache::response::foilgroup{$name . '.text'};
 	    $result .= $item_closetag;
 	    $result .= $item_posttext;




More information about the LON-CAPA-cvs mailing list