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

raeburn raeburn at source.lon-capa.org
Tue Jul 11 19:17:40 EDT 2023


raeburn		Tue Jul 11 23:17:40 2023 EDT

  Modified files:              (Branch: version_2_11_4_msu)
    /loncom/interface	lonextresedit.pm 
  Log:
  - Satisfy w3c HTML validation which does not allow id="" attributew.
  
  
Index: loncom/interface/lonextresedit.pm
diff -u loncom/interface/lonextresedit.pm:1.8.2.4.4.2 loncom/interface/lonextresedit.pm:1.8.2.4.4.3
--- loncom/interface/lonextresedit.pm:1.8.2.4.4.2	Wed Jul  5 18:41:20 2023
+++ loncom/interface/lonextresedit.pm	Tue Jul 11 23:17:40 2023
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: lonextresedit.pm,v 1.8.2.4.4.2 2023/07/05 18:41:20 raeburn Exp $
+# $Id: lonextresedit.pm,v 1.8.2.4.4.3 2023/07/11 23:17:40 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -718,13 +718,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