iframe elements require a meaningful title attribute
TNL-1675
This commit is contained in:
@@ -215,7 +215,7 @@ class CourseDetails(object):
|
||||
# the right thing
|
||||
result = None
|
||||
if video_key:
|
||||
result = '<iframe width="560" height="315" src="//www.youtube.com/embed/' + \
|
||||
result = '<iframe title="YouTube Video" width="560" height="315" src="//www.youtube.com/embed/' + \
|
||||
video_key + '?rel=0" frameborder="0" allowfullscreen=""></iframe>'
|
||||
return result
|
||||
|
||||
|
||||
@@ -263,7 +263,7 @@ CMS.URL.UPLOAD_ASSET = '${upload_asset_url}';
|
||||
<label for="course-overview">${_("Course Introduction Video")}</label>
|
||||
<div class="input input-existing">
|
||||
<div class="current current-course-introduction-video">
|
||||
<iframe width="618" height="350" src="" frameborder="0" allowfullscreen></iframe>
|
||||
<iframe width="618" height="350" title="Course Introduction Video" src="" frameborder="0" allowfullscreen></iframe>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<a href="#" class="remove-item remove-course-introduction-video remove-video-data"><span class="delete-icon"></span>${_("Delete Current Video")}</a>
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
if self.stanford_theme_enabled():
|
||||
youtube_video_id = "2gmreZObCY4"
|
||||
%>
|
||||
<iframe width="640" height="360" src="//www.youtube.com/embed/${youtube_video_id}?showinfo=0" frameborder="0" allowfullscreen></iframe>
|
||||
<iframe title="YouTube Video" width="640" height="360" src="//www.youtube.com/embed/${youtube_video_id}?showinfo=0" frameborder="0" allowfullscreen></iframe>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
% else:
|
||||
## The result of the form submit will be rendered here.
|
||||
<iframe
|
||||
title="Form Result"
|
||||
class="ltiLaunchFrame"
|
||||
name="ltiFrame-${element_id}"
|
||||
src="${form_url}"
|
||||
|
||||
Reference in New Issue
Block a user