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

Output renderer and course format code ouput <span id="maincontent">. This results in an invalid document.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0.2
    • Component/s: Course, Libraries
    • Labels:
      None
    • URL:
      Main course page in any course using either weeks or topics format. Run the W3C validator - or similar.
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Last line of the header( ) function in outputrenderers.php generates a span with id "maincontent". This is apparently used as as target for the "Skip Navigation" link (useful for screen-reader and mobile users).

      In the course directory, the "format.php" file in both the weeks and topics formats also generate a span with id = "maincontent". The existence of two tags with the same id in a document causes a validation error.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              poltawski Dan Poltawski
              Reporter:
              mlitzkow Michael J Litzkow
              Tester:
              Helen Foster
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                21/Feb/11