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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.6.3
    • Component/s: General
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_15_STABLE
    • Fixed Branches:
      MOODLE_16_STABLE

      Description

      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>

        Attachments

          Activity

            People

            • Assignee:
              dougiamas Martin Dougiamas
              Reporter:
              fairsayan Domenico Pontari
              Participants:
              Component watchers:
              Jake Dallimore, Jun Pataleta, Ryan Wyllie
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Oct/06