回答編集履歴

2

<input type="image"> の load イベントを追記

2016/12/19 00:20

投稿

think49
think49

スコア18166

test CHANGED
@@ -12,7 +12,21 @@
12
12
 
13
13
 
14
14
 
15
- 他の要素も同様なので、必要になった時に仕様書から逆引きすればいいと思います。
15
+ ただし、**<input type="image"> だけは load イベントが発生する**ようす(日本語訳には自信がので誤りがあれば訂正のコメントを頂ければ有難)
16
+
17
+
18
+
19
+ > The task that is queued by the networking task source once the resource has been fetched, must, if the download was successful and the image is available, queue a task to fire an event named load at the input element
20
+
21
+ > https://html.spec.whatwg.org/multipage/forms.html#image-button-state-(type=image)
22
+
23
+
24
+
25
+ (Google翻訳) リソースがフェッチされた後にネットワークタスクソースによってキューに入れられるタスクは、ダウンロードが成功してイメージが利用可能な場合、入力要素でloadという名前のイベントを発生させるタスクをキューに入れます。
26
+
27
+
28
+
29
+ ※他の要素も同様の手順で調査可能なので、必要になった時に仕様書から逆引きすればいいと思います。
16
30
 
17
31
 
18
32
 
@@ -34,4 +48,12 @@
34
48
 
35
49
 
36
50
 
51
+ ### 更新履歴
52
+
53
+
54
+
55
+ - 2016/12/19 09:20 <input type="image"> の load イベントを追記
56
+
57
+
58
+
37
59
  Re: TOKKIYNET さん

1

markdown修正

2016/12/19 00:20

投稿

think49
think49

スコア18166

test CHANGED
@@ -4,7 +4,13 @@
4
4
 
5
5
  「input要素がonload属性を持っているか」はHTMLの仕様書を読めば分かります。下記URLによればonload属性は存在しません。
6
6
 
7
+
8
+
7
- https://momdo.github.io/html/forms.html#the-input-element
9
+ - [4.10.5 input要素 - HTML Standard 日本語訳](https://momdo.github.io/html/forms.html#the-input-element)
10
+
11
+ - [4.10.5 The input element - HTML Standard](https://html.spec.whatwg.org/multipage/forms.html#the-input-element)
12
+
13
+
8
14
 
9
15
  他の要素でも同様なので、必要になった時に仕様書から逆引きすればいいと思います。
10
16
 
@@ -16,7 +22,13 @@
16
22
 
17
23
  UI Events によれば、load イベントはリソースを読み込むときに発火しなければならない、とあります。
18
24
 
25
+
26
+
19
- https://triple-underscore.github.io/uievents-ja.html#event-type-load
27
+ - [4.1.2.1. load - UI Events (日本語訳)](https://triple-underscore.github.io/uievents-ja.html#event-type-load)
28
+
29
+ - [4.1.2.1. load - UI Events](https://www.w3.org/TR/uievents/#event-type-load)
30
+
31
+
20
32
 
21
33
  input要素では読み込むべきリソースが存在しない為、onload 属性が存在しないのでしょう。
22
34