Moodle

Link inaccessible without javascript

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: 1.5
  • Fix Version/s: 2.0
  • Component/s: Installation
  • Labels:
    None
  • Environment:
    All
  • Affected Branches:
    MOODLE_15_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

In ./moodle/install.php, the following construction:

<a href=javascript: void(0)><img src=./pix/help.gif height=17 width=22 alt=Helpborder=0 align=middle title=Help onClick=return window.open('install.php?help=memorylimithelp', 'Help', 'menubar=0,location=0,scrollbars,resizable,width=500,height=400')></a>

is a 'link' to a page that is completely inaccessible for people using non-javascript-enabled browsers. I think the only thing that using javascript here really gains you is the opportunity to break the toolbars and such in the spawned window. Couldn't the link be included in the anchor element as well?

<a href=install.php?help=memorylimithelp title=New window: Help for memory limit caution.><img src=./pix/help.gif height=17 width=22 alt=Helpborder=0 align=middle title=Help onClick=return window.open('install.php?help=memorylimithelp', 'Help', 'menubar=0,location=0,scrollbars,resizable,width=500,height=400')></a>

Also, there's no space between the end of the alt attribute and the border attribute. border is deprecated in html4.0, and may be disallowed in XHTML1... not sure about that part. I'd suggest removing the 'border' attribute from the img tag, and replacing it with style=border: 0px;.

Activity

Hide
Martin Dougiamas added a comment -

From Martin Dougiamas (martin at moodle.com) Wednesday, 23 March 2005, 10:59 AM:

cc'ing Eloy just in case you're in the area anyway while working on m4w, otherwise I'll get to it

Show
Martin Dougiamas added a comment - From Martin Dougiamas (martin at moodle.com) Wednesday, 23 March 2005, 10:59 AM: cc'ing Eloy just in case you're in the area anyway while working on m4w, otherwise I'll get to it
Hide
Petr Škoda (skodak) added a comment -

not a problem anymore in new 2.0 installer, closing, thanks

Show
Petr Škoda (skodak) added a comment - not a problem anymore in new 2.0 installer, closing, thanks

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: