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

Open docs in new window is not XHTML 1.0 compliant: target is forbidden.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.8.4, 1.9, 2.0
    • 1.8.3
    • General
    • None
    • MOODLE_18_STABLE
    • MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE

      The "target" attribute is forbidden in XHTL 1.0 strict. Moodle doesn't validate with "docs in new window" on.

      A possible workaround might be to use JS:

      <a onclick="window.open(this.href); return false;" onkeypress="window.open(this.href); return false;" href="abc">text</a>

      If the browser does not support JavaScript or it's no enabled, the link will open in current window.

      Found http://lists.evolt.org/archive/Week-of-Mon-20041018/165515.html

        1. doc_link.patch
          0.9 kB
          Francois Marier
        2. doc_link18.patch
          0.9 kB
          Francois Marier

            nicolasconnault Nicolas Connault (Inactive)
            urshunkler Urs Hunkler
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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