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

HTML validator errors on the gradebook setup page

XMLWordPrintable

    • MOODLE_401_STABLE, MOODLE_402_STABLE
    • MOODLE_401_STABLE, MOODLE_402_STABLE
    • MDL-78550-401
    • MDL-78550-master
    • Hide
      Prerequisites
      1. NuHTML validator
      2. Accessibility checker, like axe DevTools browser extension (WAVE will incorrectly flag the empty filler columns so we'll not use it this time)
      3. Enable Download course content
      Test
      1. Restore activity_examples.mbz to your Moodle site.
      2. Go to the course and navigate to Grades > Gradebook setup.
      3. Open your browser dev tools and check the page with axeDevTools.
      4. Confirm you don't see the following issues:
        • Headings should not be empty
        • Table header text should not be empty
      5. Right-click on the page and click "View page source".
      6. Copy the page source and paste it to the text area field of Nu HTML Validator.
      7. Confirm that there are no errors/warnings, except for the following:
        • Warning: A table row was X columns wide, which is less than the column count established by the first row (Y).
        • Error: Table columns in range X…Y established by element td have no cells beginning in them.
      Show
      Prerequisites NuHTML validator Accessibility checker, like axe DevTools browser extension (WAVE will incorrectly flag the empty filler columns so we'll not use it this time) Enable Download course content Test Restore activity_examples.mbz to your Moodle site. Go to the course and navigate to Grades > Gradebook setup. Open your browser dev tools and check the page with axeDevTools. Confirm you don't see the following issues: Headings should not be empty Table header text should not be empty Right-click on the page and click " View page source ". Copy the page source and paste it to the text area field of Nu HTML Validator . Confirm that there are no errors/warnings, except for the following: Warning: A table row was X columns wide, which is less than the column count established by the first row (Y). Error: Table columns in range X…Y established by element td have no cells beginning in them.

      To reproduce:

      1. Create a course with several activities with grading (e.g. assign, forum, quiz)
      2. Go to the grade book setup page.
      3. Inspect > View page source
      4. Copy the grade book setup page's HTML
      5. Run it in Nu HTML Validator
      6. Expectation
        • There should be no errors
      7. Actual
        • The following validation errors are encountered:
          1. Attribute text not allowed on element td at this point.

            <td class="cell column-name level1 levelodd cell c0" text="" style="" colspan="3">
            

          2. Bad value category category4 for attribute id on element input: An ID must not contain whitespace.

            <input id="category category4" name="category category4" type="checkbox" class="itemselect ignoredirty" value="1"data-action="toggle"data-toggle="master"data-togglegroup="category category4"data-toggle-selectall="All"data-toggle-deselectall="All"↩       ↩/>
            

          3. Table columns in range 9…18 established by element td have no cells beginning in them.

            <td class="emptyrow colspan level2 leveleven cell c0 lastcol" style="" colspan="17">
            

      Noting some warnings also:

      1. Empty heading. (empty h2 tag)
      2. Table column count issues (e.g. "A table row was 2 columns wide, which is less than the column count established by the first row (8).")

            jpataleta Jun Pataleta
            jpataleta Jun Pataleta
            Paul Holden Paul Holden
            Ilya Tregubov Ilya Tregubov
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours, 6 minutes
                5h 6m

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