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

invalid html code in mforms

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.11.10, 4.0.4
    • Forms Library
    • None
    • MOODLE_311_STABLE, MOODLE_400_STABLE

      Download and copy the attached php file to your local moodle test instance.

      Set $usecustomid = true; at line 10.

      Load the page, get the html code and paste it in https://validator.w3.org/nu/#textarea

      HTML code is not valid.

      Error: Duplicate ID id0_test1.

      Error: Duplicate ID id1_test1.

      ...

      Setting $usecustomid = false; at line 10 the issue disappears.

       

      Moodle should change the id of the tag span used for the mform element feedback.

      <span class="form-control-feedback invalid-feedback" id="invite" >

            Unassigned Unassigned
            daniss Daniele Cordella
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

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