mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
MDL-79283 core: add title to embedded iframe, for accessibility.
This commit is contained in:
parent
d1bc94905e
commit
00d7ed9518
@ -262,13 +262,13 @@ function resourcelib_embed_general($fullurl, $title, $clicktoopen, $mimetype) {
|
||||
$fullurl = $fullurl->out();
|
||||
}
|
||||
|
||||
$param = '<param name="src" value="'.$fullurl.'" />';
|
||||
$title = s($title);
|
||||
|
||||
// Always use iframe embedding because object tag does not work much,
|
||||
// this is ok in HTML5.
|
||||
$code = <<<EOT
|
||||
<div class="resourcecontent resourcegeneral">
|
||||
<iframe id="resourceobject" src="$fullurl">
|
||||
<iframe id="resourceobject" src="$fullurl" title="$title">
|
||||
$clicktoopen
|
||||
</iframe>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user