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

Remove extra <br /> tag for XHTML strict validation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4
    • Fix Version/s: 1.8.5, 1.9
    • Component/s: Questions
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      Remove extra <br /> tag for XHTML strict validation in file question/preview.php.
      Validator error shown:

      Line 130, Column 5: document type does not allow element "br" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
      <br /><div class="controls"><input type="hidden" name="id" value="164" />
      The mentioned element is not allowed to appear in the context in which you've placed it;

      patch file attached against current moodle 1.8

        Attachments

          Activity

            People

            • Assignee:
              timhunt Tim Hunt
              Reporter:
              rezeau Joseph Rézeau
              Tester:
              Nicolas Martignoni
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Mar/08