Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update Techniques (issue 2482) #2490

Merged
merged 65 commits into from
Oct 21, 2022
Merged
Show file tree
Hide file tree
Changes from 57 commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
7cadec1
update H28 for HTML and presentation fixes
fstrr May 25, 2022
7590970
update H2 for HTML
fstrr May 25, 2022
1217e80
update H24 for HTML, typos, code fixes
fstrr May 25, 2022
953f10d
update H25 for HTML and typos
fstrr May 25, 2022
5e9cd09
Update ARIA 1 for HTML and clarity
fstrr May 25, 2022
aa3f306
Update ARIA2 for HTML, clarity
fstrr May 25, 2022
1691615
Update for HTML and code samples
fstrr May 26, 2022
f9b8b2c
Update SCR16 for HTML
fstrr May 26, 2022
db561cd
update H37 for replace HTML 4.01 links
fstrr May 27, 2022
2469ef3
update H39 to replace references to HTML 4.01
fstrr May 27, 2022
7c3496e
delete h73
fstrr May 27, 2022
085d76d
delete H45 as longdesc is obsolete in HTML
fstrr May 27, 2022
0fc3d90
update H49 for HTML, clarity
fstrr May 29, 2022
9a98da4
update H97 for HTML and clarity
fstrr May 31, 2022
017fd48
update H59 for HTML and clarity
fstrr May 31, 2022
e88229f
Update H64 for HTML and accuracy
fstrr May 31, 2022
3c9d5f7
Update H98 for HTML
fstrr May 31, 2022
cadb0fc
Update for HTML, typos, clarity
fstrr May 31, 2022
8a15893
Delete H4
fstrr May 31, 2022
2974638
Update H32 for HTML, code example, links
fstrr Jun 1, 2022
095c115
Update H40 for HTML code examples
fstrr Jun 1, 2022
de4b7d7
Update H42 for HTML, code, resources
fstrr Jun 1, 2022
4cbeb3e
Delete H35 - applet element is obsolete
fstrr Jun 1, 2022
e420126
Criteria → Criterion, fix resource link
fstrr Jun 3, 2022
594e57a
Criteria → Criterion, code markup.
fstrr Jun 3, 2022
514cc79
Merge branch 'main' into issue-2482
fstrr Jun 3, 2022
17a095d
putting H45 (longdesc) back for this PR
fstrr Jun 3, 2022
8c0b8e3
Update H51 for HTML, code example, Resources
fstrr Jun 3, 2022
1ceb6ee
Update H57 for HTML, resources, code example
fstrr Jun 3, 2022
07027d0
remove confusing sentence
fstrr Jun 3, 2022
48dba64
Update H58 for HTML, Resources, code example
fstrr Jun 6, 2022
8f29b67
added code tag
fstrr Jun 6, 2022
17b1017
Delete H60 and references to it.
fstrr Jun 6, 2022
6c4740c
update H43 for HTML, typos, Resources
fstrr Jun 7, 2022
9be2c39
update H67 for clarity, HTML, resources, typos
fstrr Jun 7, 2022
24f55e3
update title of H67 from “AT” to “assistive technology”
fstrr Jun 7, 2022
a1ab671
Delete H46 and references to it
fstrr Jun 9, 2022
2b8b272
Update H48 for HTML, code examples, Resources
fstrr Jun 9, 2022
87bb6b5
re-title from defintion list to description list
fstrr Jun 9, 2022
ba28c03
Update H69 for HTML, examples, typos, resources
fstrr Jun 9, 2022
298d57f
Update H36 for HTML, code example, resources
fstrr Jun 14, 2022
91877c4
update code tag class attribute values
fstrr Jun 15, 2022
b2fcb99
H36 update code element class attribute values
fstrr Jun 15, 2022
2fcaee9
Update H71 for HTML, examples, resources, code
fstrr Jun 16, 2022
2dd74be
Update H74 for HTML, example, resourses
fstrr Jun 16, 2022
0547c15
Update H78 - tidy up example, add abbr
fstrr Jun 21, 2022
dd72a38
Update H79 for code
fstrr Jun 21, 2022
ab7eb3f
update H76 for HTML, example, resources, procedure
fstrr Jul 1, 2022
1bf2c7c
Update H78 code example and expected results
fstrr Jul 1, 2022
3bfebd4
update H79 for code, expected results
fstrr Jul 1, 2022
74dcfac
Update H83 for HTML, note, resources
fstrr Jul 6, 2022
6a17dd3
Update H84 for HTML, code, examples, resources
fstrr Jul 6, 2022
078d5ef
Update H85 and TOC for HTML, examples, clarity, resources
fstrr Jul 7, 2022
1e75719
structure fixes
Jul 11, 2022
f0cc5ed
Merge branch 'issue-2482' of https://github.com/w3c/wcag into issue-2482
Jul 11, 2022
6ec0bb3
Update H56 for HTML, example, resources
fstrr Jul 13, 2022
7660ca2
Update H86 for content, examples, resources
fstrr Jul 19, 2022
33fe91d
Update H71 for examples
fstrr Jul 20, 2022
84b69e9
Update H81 for HTML, examples, test procedure, resourses
fstrr Jul 20, 2022
e55d9ae
Update G134 for content, resources
fstrr Jul 21, 2022
e89f4b2
Update H34 for code, resources
fstrr Aug 2, 2022
9fdbbee
Updated H44 for content, code, examples, resources
fstrr Aug 2, 2022
3e26db6
Replace reference to HTML 5.2
fstrr Sep 30, 2022
416e15f
Replace references to HTML 5.2
fstrr Sep 30, 2022
7535afe
Replace reference to HTML 5.2
fstrr Sep 30, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion guidelines/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ <h3>Navigable</h3>

<section data-include="sc/22/focus-appearance.html" data-include-replace="true"></section>

<section data-include="sc/22/focus-not-obscured.html" data-include-replace="true"></section>
<section data-include="sc/22/focus-not-obscured-minimum.html" data-include-replace="true"></section>

<section data-include="sc/22/focus-not-obscured-enhanced.html" data-include-replace="true"></section>

Expand Down
289 changes: 74 additions & 215 deletions techniques/aria/ARIA1.html

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion techniques/aria/ARIA13.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ <h3>Identification for Application landmarks</h3>
<li><a href="../aria/ARIA16">ARIA16</a></li>
<li><a href="../aria/ARIA7">ARIA7</a></li>
<li><a href="../general/G92">G92</a></li>
<li><a href="../html/H45">H45</a></li>
</ul></section><section id="resources"><h2>Resources</h2>

<ul>
Expand Down
1 change: 0 additions & 1 deletion techniques/aria/ARIA15.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ <h3>Describing an image</h3>
<li><a href="../aria/ARIA6">ARIA6</a></li>
<li><a href="../aria/ARIA16">ARIA16</a></li>
<li><a href="../general/G92">G92</a></li>
<li><a href="../html/H45">H45</a></li>
</ul></section><section id="resources"><h2>Resources</h2>

<ul>
Expand Down
1 change: 0 additions & 1 deletion techniques/aria/ARIA16.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ <h3>A label from multiple sources</h3>
<li><a href="../aria/ARIA7">ARIA7</a></li>
<li><a href="../aria/ARIA13">ARIA13</a></li>
<li><a href="../general/G92">G92</a></li>
<li><a href="../html/H45">H45</a></li>
</ul></section><section id="resources"><h2>Resources</h2>

<ul>
Expand Down
281 changes: 111 additions & 170 deletions techniques/aria/ARIA2.html

Large diffs are not rendered by default.

134 changes: 71 additions & 63 deletions techniques/client-side-script/SCR16.html
Original file line number Diff line number Diff line change
@@ -1,79 +1,87 @@
<!DOCTYPE html><html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"><head><title>Providing a script that warns the user a time limit is about to expire</title><link rel="stylesheet" type="text/css" href="../../css/sources.css" class="remove"></link></head><body><h1>Providing a script that warns the user a time limit is about to expire</h1><section class="meta"><p class="id">ID: SCR16</p><p class="technology">Technology: client-side-script</p><p class="type">Type: Technique</p></section><section id="applicability"><h2>When to Use</h2>
<p>
Time limits exist that are controlled by script.
</p>
</section><section id="description"><h2>Description</h2>
<p>
The objective of this technique is to notify users that they are almost out of time to complete an interaction. When scripts provide functionality that has time limits, the script can include functionality to warn the user of imminent time limits and provide a mechanism to request more time. 20 seconds or more before the time limit occurs, the script provides a confirm dialog that states that a time limit is imminent and asks if the user needs more time. If the user answers "yes" then the time limit is reset. If the user answers "no" or does not respond, the time limit is allowed to expire.
</p>
<p>
This technique involves time limits set with the window.setTimeout() method. If, for example, the time limit is set to expire in 60 seconds, you can set the time limit for 40 seconds and provide the confirm dialog. When the confirm dialog appears, a new time limit is set for the remaining 20 seconds. Upon expiry of the "grace period time limit" the action that would have been taken at the expiry of the 60 second time limit in the original design is taken.
</p>
</section><section id="examples"><h2>Examples</h2>
<!DOCTYPE html>
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"><head>
<title>Providing a script that warns the user a time limit is about to expire</title>
<link rel="stylesheet" type="text/css" href="../../css/editors.css" class="remove"></link>
</head>
<body>
<h1>Providing a script that warns the user a time limit is about to expire</h1>
<section class="meta">
<p class="id">ID: SCR16</p>
<p class="technology">Technology: client-side-script</p>
<p class="type">Type: Technique</p>
</section>
<section id="applicability">
<h2>When to Use</h2>
<p>Time limits exist that are controlled by script.</p>
</section>
<section id="description">
<h2>Description</h2>
<p>The objective of this technique is to notify users that they are almost out of time to complete an interaction. When scripts provide functionality that has time limits, the script can include functionality to warn the user of imminent time limits and provide a mechanism to request more time. 20 seconds or more before the time limit occurs, the script provides a confirm dialog that states that a time limit is imminent and asks if the user needs more time. If the user answers "yes" then the time limit is reset. If the user answers "no" or does not respond, the time limit is allowed to expire.</p>
<p>This technique involves time limits set with the <code class="language-javascript">window.setTimeout()</code> method. If, for example, the time limit is set to expire in 60 seconds, you can set the time limit for 40 seconds and provide the confirm dialog. When the confirm dialog appears, a new time limit is set for the remaining 20 seconds. Upon expiry of the "grace period time limit" the action that would have been taken at the expiry of the 60 second time limit in the original design is taken.</p>
</section>
<section id="examples">
<h2>Examples</h2>
<section class="example">

<p>
A page of stock market quotes uses script to refresh the page every five minutes in order to ensure the latest statistics remain available. 20 seconds before the five minute period expires, a confirm dialog appears asking if the user needs more time before the page refreshes. This allows the user to be aware of the impending refresh and to avoid it if desired.
</p>
<p>A page of stock market quotes uses script to refresh the page every five minutes in order to ensure the latest statistics remain available. 20 seconds before the five minute period expires, a confirm dialog appears asking if the user needs more time before the page refreshes. This allows the user to be aware of the impending refresh and to avoid it if desired.</p>

<pre xml:space="preserve">
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"https://www.w3.org/TR/html4/loose.dtd"&gt;
<pre xml:space="preserve">
&lt;!doctype html&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
&lt;title&gt;Stock Market Quotes&lt;/title&gt;
&lt;script type="text/javascript"&gt;
&lt;!--
function timeControl() {
// set timer for 4 min 40 sec, then ask user to confirm.
setTimeout('userCheck()', 280000);
}
function userCheck() {
// set page refresh for 20 sec
var id=setTimeout('pageReload()', 20000);
// If user selects "OK" the timer is reset
// else the page will refresh from the server.
if (confirm("This page is set to refresh in 20 seconds.
Would you like more time?"))
{
clearTimeout(id);
timeControl();
}
}
function pageReload() {
window.location.reload(true);
}
timeControl();
--&gt;
&lt;/script&gt;
&lt;meta charset="utf-8"&gt;
&lt;title&gt;Stock Market Quotes&lt;/title&gt;
&lt;script&gt;
function timeControl() {
// set timer for 4 min 40 sec, then ask user to confirm.
setTimeout('userCheck()', 280000);
}
function userCheck() {
// set page refresh for 20 sec
var id=setTimeout('pageReload()', 20000);
// If user selects "OK" the timer is reset
// else the page will refresh from the server.
if (confirm("This page is set to refresh in 20 seconds.
Would you like more time?"))
{
clearTimeout(id);
timeControl();
}
}
function pageReload() {
window.location.reload(true);
}
timeControl();
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h1&gt;Stock Market Quotes&lt;/h1&gt;
...etc...
&lt;h1&gt;Stock Market Quotes&lt;/h1&gt;
...
&lt;/body&gt;
&lt;/html&gt;
</pre>
&lt;/html&gt;</pre>
</section>
</section><section id="tests"><h2>Tests</h2>
</section>
<section id="tests">
<h2>Tests</h2>
<section class="procedure"><h3>Procedure</h3>
<p>
On a Web page that has a time limit controlled by a script: </p>
<p>On a Web page that has a time limit controlled by a script:</p>
<ol>
<li>
load the page and start a timer that is 20 seconds less than the time limit.
</li>
<li>
when the timer expires, check that a confirmation dialog is displayed warning of the impending time limit.
</li>
<li>Load the page and start a timer that is 20 seconds less than the time limit.</li>
<li>When the timer expires, check that a confirmation dialog is displayed warning of the impending time limit.</li>
</ol>
</section>
<section class="results"><h3>Expected Results</h3>
<section class="results">
<h3>Expected Results</h3>
<ul>
<li>
#2 is true.
</li>
<li>#2 is true.</li>
</ul>
</section>
</section><section id="related"><h2>Related Techniques</h2><ul>
<li><a href="../client-side-script/SCR1">SCR1</a></li>
</ul></section></body></html>
</section>
<section id="related">
<h2>Related Techniques</h2>
<ul>
<li><a href="../client-side-script/SCR1">SCR1</a></li>
</ul>
</section>
</body>
</html>
bruce-usab marked this conversation as resolved.
Show resolved Hide resolved
Loading