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

Links in framed resource header don't load in _top if javascript is disabled.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.5
    • Fix Version/s: 1.9.6, 2.0
    • Component/s: Libraries
    • Labels:
      None
    • Environment:
      UA with no javascript available.
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      When viewing a File Resource using Same window With frame, the breadcrumb links in the header frame load into the header, rather than _top - making the breadcrumb links essentially unusable.

      This is because the target attribute has been replaced with onclick="this.target='_top'", in pursuit of XHTML compliance - at the cost of extra reliance on javascript, arguably in conflict with WCAG 12.1 Graceful transformation of scripts (http://www.w3.org/TR/WCAG10-HTML-TECHS/#scripts

      I'm aware of the Without frame option, but the extra scrollbar which appears with it rather puts me off.

      NB: The target attribute is no longer depreciated in HTML5.

      (As discussed in http://moodle.org/mod/forum/discuss.php?d=132885)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    21/Oct/09