[LON-CAPA-cvs] cvs: loncom /interface lonextresedit.pm

raeburn raeburn at source.lon-capa.org
Tue Jul 11 20:05:02 EDT 2023


raeburn		Wed Jul 12 00:05:02 2023 EDT

  Modified files:              
    /loncom/interface	lonextresedit.pm 
  Log:
  - Satisfy w3c HTML validation which does not allow id="" attributes.
  
  
Index: loncom/interface/lonextresedit.pm
diff -u loncom/interface/lonextresedit.pm:1.33 loncom/interface/lonextresedit.pm:1.34
--- loncom/interface/lonextresedit.pm:1.33	Tue Jul 11 23:43:03 2023
+++ loncom/interface/lonextresedit.pm	Wed Jul 12 00:05:02 2023
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: lonextresedit.pm,v 1.33 2023/07/11 23:43:03 raeburn Exp $
+# $Id: lonextresedit.pm,v 1.34 2023/07/12 00:05:02 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -716,13 +716,17 @@
 </div>
 ";
     }
+    my $idattr;
+    unless ($subdivid eq '') {
+        $idattr = 'id="'.$subdivid.'"';
+    }
     $form = <<ENDFORM;
 <form action="$action" method="post" name="$formname" id="$formid">
 <fieldset id="$fieldsetid" style="$fieldsetstyle">
 $legend
 $active
 $chooser
-<div id="$subdivid" style="$subdivstyle">
+<div $idattr style="$subdivstyle">
 <span$srcclass>
 $title
 <input type="text" size="$size" name="exttitle" value="$orig_title" $disabled />




More information about the LON-CAPA-cvs mailing list