XHTML strict.

There is tsome truely horrible hackery going on here to ensure XHTML strict,
and rather unsurprisingly, it was broken. I think it is less broken now.
This commit is contained in:
tjhunt
2009-07-29 05:59:01 +00:00
parent a18e55c721
commit 57e207d552
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -183,5 +183,6 @@ print_box_start();
rss_display_feeds($id, $USER->id, '', $context);
rss_print_form($act, $url, $rssid, $preferredtitle, $shared, $id, $context);
print_box_end();
print '<div><form><div>'; // Reopen page form to keep XHTML strict.
}
?>
+3 -3
View File
@@ -471,7 +471,6 @@ function rss_get_form($act='none', $url='', $rssid='', $preferredtitle='', $shar
$returnstring = '';
$returnstring .= '<form action="'. $CFG->wwwroot .'/blocks/rss_client/block_rss_client_action.php" method="post" id="block_rss">'."\n";
print_location_comment(__FILE__,__LINE__);
$returnstring .= '<div id="rss_table">'."\n";
if ($act == 'rssedit') {
$returnstring .= $strupdatefeed;
@@ -530,8 +529,9 @@ function rss_get_form($act='none', $url='', $rssid='', $preferredtitle='', $shar
}
$returnstring .= '" />&nbsp;'. $validatestring ."\n";
// $returnstring .= '</div></form>'."\n"; // Avoiding nested forms... Ugly temporary hack #8922
return $returnstring . print_location_comment(__FILE__, __LINE__, true);
$returnstring .= '</div></form>'."\n";
return $returnstring;
}