-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathtesting-iframe.html
More file actions
30 lines (30 loc) · 1.64 KB
/
testing-iframe.html
File metadata and controls
30 lines (30 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Testing hidden iFrames</title>
<link rel="stylesheet" href="css/normalization.css" />
<link rel="stylesheet" href="css/base.css" />
</head>
<body>
<div class="container">
<a href="#main" class="skip-link">Skip to main content</a>
<div class="page-wrapper" id="main" role="main" tabindex="-1">
<h1>Testing Hidden iFrames</h1>
<p><a href="http://haltersweb.github.io/Accessibility/">View the full library of accessibility solutions.</a></p>
<p>iFrames are difficult to hide from screen readers. Just using display: none will often not keep screen readers from caching and reading the content inside. (https://www.paciellogroup.com/blog/2010/04/making-sure-hidden-frames-are-hidden/)</p>
<p>Back in 2010 Steve Faulkner mentioned someday being able to use the HTML5 global hidden attribute. This attribute is now fully supported.</p>
<p>This page is a test to see if it is truly the answer for iframes. Following is a hidden iframe with content injected from <a href="sample-iframe-content.html">sample-iframe-content.html</a>.</p>
<iframe src="sample-iframe-content.html" frameborder="0" hidden></iframe>
</div>
<div class="overlay"></div>
<div class="block-screen"></div>
<div aria-live="polite" class="screen-reader-text"></div>
<div role="alert" class="screen-reader-text"></div>
</div>
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/namespacing.js"></script>
<script type="text/javascript" src="js/accessibility-helpers.js"></script>
</body>
</html>