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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.3
    • Fix Version/s: 1.8.4, 1.9, 2.0
    • Component/s: General
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      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

        Attachments

          Activity

            People

            Assignee:
            nicolasconnault Nicolas Connault
            Reporter:
            urshunkler Urs Hunkler
            Tester:
            Nobody
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Jan/08