From 60fcabfa6db27acd5eab48c8fc1e92b554ceeb09 Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Sat, 21 May 2022 00:32:38 +0800 Subject: [PATCH] MDL-73386 mod_quiz: Use plain text for quiz navigation fake block title * No need to enclose the title of the quiz navigation fake block in a span tag. The block title also gets appended to the skip link which means that a block title with a span tag assigned with an identifier can cause duplicate ID errors on the DOM. --- mod/quiz/attemptlib.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mod/quiz/attemptlib.php b/mod/quiz/attemptlib.php index ff88369dfdd..3a6ccbb5904 100644 --- a/mod/quiz/attemptlib.php +++ b/mod/quiz/attemptlib.php @@ -1900,8 +1900,7 @@ class quiz_attempt { $bc = new block_contents(); $bc->attributes['id'] = 'mod_quiz_navblock'; $bc->attributes['role'] = 'navigation'; - $bc->attributes['aria-labelledby'] = 'mod_quiz_navblock_title'; - $bc->title = html_writer::span(get_string('quiznavigation', 'quiz'), '', array('id' => 'mod_quiz_navblock_title')); + $bc->title = get_string('quiznavigation', 'quiz'); $bc->content = $output->navigation_panel($panel); return $bc; }