mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
MDL-7602 - Multianswer question type only works with invalid HTML. Merged from MOODLE_17_STABLE.
This commit is contained in:
parent
62fb666445
commit
9016b062e7
@ -311,7 +311,12 @@ class embedded_cloze_qtype extends default_questiontype {
|
||||
? ' selected="selected" ' : '';
|
||||
$outputoptions .= "<option value=\"$mcanswer->id\" $selected>$mcanswer->answer</option>";
|
||||
}
|
||||
echo "<select $popup $disabled $style name=\"$inputname\">";
|
||||
// In the next line, $readonly is invalid HTML, but it works in
|
||||
// all browsers. $disabled would be valid, but then the JS for
|
||||
// displaying the feedback does not work. Of course, we should
|
||||
// not be relying on JS (for accessibility reasons), but that is
|
||||
//a bigger problem.
|
||||
echo "<select $popup $readonly $style name=\"$inputname\">";
|
||||
echo $outputoptions;
|
||||
echo '</select>';
|
||||
if (!empty($feedback) && $USER->screenreader) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user