Uploaded image for project: 'Qt Project Website'
  1. Qt Project Website
  2. QTWEBSITE-444

[wiki] The "Article history" interface uses invalid HTML (same id attribute for multiple elements)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • None
    • qt-project.org

    Description

      The page (http://qt-project.org/wiki/diff/<ArticleName>) you get to when clicking the "Article history" link in the sidebar of any wiki Article, contains a section of the following form for each listed revision of the article:

      <div class="itempad">
      	<input name="rad_revision1" id="rad_revision1" ...>
      	<input name="rad_revision2" id="rad_revision2" ...>
      	...
      	<input id="rev1_id" ...>
      	<input id="rev2_id" ...>
      </div>
      

      The exact same four id's ("rad_revision1", "rad_revision2", "rev1_id", "rev2_id") are used in all such sections on the same page.

      This is expressly forbidden by the HTML standard - the value of an id attribute must be a unique identifier for a single element.

      Either the server-side script should generate a unique id for each of the input elements, or (probably a lot easier) the client-side JavaScript code that operates on them should not address them by id, but rather by class or name (which are allowed to be the same for multiple elements).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mahoviko Markus Hovikoski (Inactive)
            jdavet Davet Jacques
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes