Merge pull request #7544 from edx/ahsan/tnl-1675-iframe-elements-require-meaningful-title

iframe elements require a meaningful title attribute
This commit is contained in:
Ahsan Ulhaq
2015-04-16 13:54:15 +05:00
4 changed files with 4 additions and 3 deletions

View File

@@ -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

View File

@@ -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>