Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-3805

mod.html in NEWMODULE.zip is not XHTML1.0 Transitional compliant

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 1.6.3
    • 1.5
    • General
    • None
    • All
    • MOODLE_15_STABLE
    • MOODLE_16_STABLE

      I tried to validate my mod.html page for my activity aganist w3c validator, but I found that some <input> element haven't ending slash and last

      <input type=hidden...

      have name attribute value without double hyphoon ()

      Here I paste how should be mod.html for me:

      <!-- This page defines the form to create or edit an instance of this module -->

      <!-- It is used from /course/mod.php. The whole instance is available as $form. -->

      <?php

      /// First we check that form variables have been initialised

      if (!isset($form->name))

      { $form->name = ''; }

      // More similar blocks go here...

      ?>

      <form name=form method=post action=mod.php>

      <center>

      <table cellpadding=5>

      <tr valign=top>

      <td align=right><b><?php print_string(name) ?>:</b></td>

      <td>

      <input type=text name=name size=30 value=<?php p($form->name) ?> />

      </td>

      </tr>

      <!-- More rows go in here... -->

      <!-- The following line for Moodle 1.5 prints the visibility setting form element -->

      <?php print_visible_setting($form); ?>

      <!-- and if your module uses groups you would also have -->

      <?php print_groupmode_setting($form); ?>

      </table>

      <!-- These hidden variables are always the same -->

      <input type=hidden name=course value=<?php p($form->course) ?> />

      <input type=hidden name=sesskey value=<?php p($form->sesskey) ?> />

      <input type=hidden name=coursemodule value=<?php p($form->coursemodule) ?> />

      <input type=hidden name=section value=<?php p($form->section) ?> />

      <input type=hidden name=module value=<?php p($form->module) ?> />

      <input type=hidden name=modulename value=<?php p($form->modulename) ?> />

      <input type=hidden name=instance value=<?php p($form->instance) ?> />

      <input type=hidden name=mode value=<?php p($form->mode) ?> />

      <input type=submit value=<?php print_string(savechanges) ?> />

      </center>

      </form>

            dougiamas Martin Dougiamas
            fairsayan Domenico Pontari
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.