1 |
wakaba |
1.1 |
<html xmlns="http://www.w3.org/1999/xhtml" |
2 |
|
|
xmlns:ev="http://www.w3.org/2001/xml-events" |
3 |
|
|
xml:lang="en"> |
4 |
|
|
<head> |
5 |
|
|
<title><button ev:handler=""> ~ handler</title> |
6 |
|
|
</head> |
7 |
|
|
<body> |
8 |
|
|
<h1><code><button ev:handler=""></code> ~ <var>handler</var></h1> |
9 |
|
|
|
10 |
|
|
<p>Is a <code><script></code> |
11 |
|
|
executed when an event is dispatched on <button id="button" |
12 |
|
|
ev:handler="#handler" ev:event="click">an element |
13 |
|
|
with <code>ev:event=""</code></button>? |
14 |
|
|
<em id="invoked">not yet</em></p> |
15 |
|
|
|
16 |
|
|
<script type="text/javascript"> |
17 |
|
|
window.Loading = true; |
18 |
|
|
</script> |
19 |
|
|
|
20 |
|
|
<script type="text/javascript" id="handler"> |
21 |
|
|
if (!window.Loading) { |
22 |
|
|
document.getElementById ('invoked').textContent = 'PASS'; |
23 |
|
|
} |
24 |
|
|
</script> |
25 |
|
|
|
26 |
|
|
<script type="text/javascript"> |
27 |
|
|
window.Loading = false; |
28 |
|
|
</script> |
29 |
|
|
|
30 |
|
|
</body> |
31 |
|
|
</html> |