/
970.txt
77 lines (60 loc) · 3.84 KB
/
970.txt
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
[1] [[HTML]] の [DFN[[CODE(HTMLe)@en[[[source]]]]]] [[要素]]は、
[[媒体]]の [[URL]] を表します。
[2] [[媒体要素]] ([CODE(HTMLe)@en[[[video]]]] [[要素]]や
[CODE(HTMLe)@en[[[audio]]]] [[要素]]) で使われる場合と、
[CODE(HTMLe)@en[[[picture]]]] [[要素]]で使われる場合は、
同名ですがまったく異なる用法となっています。
* 歴史
** 媒体要素
[3]
[CITE[Re: <source>]] ([[Ian Hickson <ian@...>]] 著, [CODE[2007-10-13 01:00:01 +09:00]] 版) <http://permalink.gmane.org/gmane.org.w3c.whatwg.discuss/12020>
[4] [CITE@en[(X)HTML5 Tracking]]
([TIME[2009-10-18 16:45:18 +09:00]] 版)
<http://html5.org/tools/web-apps-tracker?from=4156&to=4157>
[5] [CITE[''''''[''''''whatwg'''''']'''''' <INCLUDE> and links with @rel=embed]]
( ([TIME[2011-07-28 08:43:45 +09:00]] 版))
<http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2011-July/032653.html>
[6] [CITE[IRC logs: freenode / #whatwg / 20120404]]
( ([TIME[2012-04-13 08:28:52 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20120404>
[7] [CITE[IRC logs: freenode / #whatwg / 20120515]]
( ([TIME[2012-05-27 10:15:27 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20120515#l-2846>
** [CODE(HTMLa)@en[media]] 属性
[REFS[
- [8] [CITE[''''''[''''''whatwg'''''']'''''' <source> media attribute behavior, static or dynamic ?]]
( ([TIME[2012-06-30 08:25:56 +09:00]] 版))
<http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2012-June/036527.html>
- [9] [CITE[''''''[''''''whatwg'''''']'''''' media attribute of <source> element, default behavior on getting the property.]]
( ([TIME[2012-06-30 08:25:56 +09:00]] 版))
<http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2012-June/036526.html>
]REFS]
;; [CODE(HTMLa)@en[[[media]]]] [[属性]]の項も参照。
** [CODE(HTMLe)@en[picture]] 要素
[13] [[Ian Hickson]] は[[媒体要素]]における [CODE(HTMLe)@en[[[source]]]]
[[要素]]を使った方法は失敗だったとして [CODE(HTMLe)@en[[[picture]]]] [[要素]]と
[CODE(HTMLe)@en[[[source]]]] [[要素]]の方法に強硬に反対していましたが、
[[RICG]] の提案する方法で [[Webブラウザー]]開発者が合意したため、
結局 [[HTML Standard]] に統合されることとなりました。
なお [CODE(HTMLe)@en[[[picture]]]] [[要素]]における [CODE(HTMLe)@en[[[source]]]]
[[要素]]は、[[媒体要素]]の [CODE(HTMLe)@en[[[source]]]] [[要素]]とは同名ながらも利用方法も処理モデルもまったく異なる事実上別の[[要素]]となっています。
[REFS[
- [10] [CITE[Consider renaming source to something else · Issue #133 · ResponsiveImagesCG/picture-element]]
( ([TIME[2014-04-12 11:41:51 +09:00]] 版))
<https://github.com/ResponsiveImagesCG/picture-element/issues/133>
- [11] [CITE[IRC logs: freenode / #whatwg / 20140411]]
( ([TIME[2014-04-12 19:00:29 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20140411>
- [15] [CITE@en[Web Applications 1.0 r8612 Remove the <img> stuff so that zcorpan can edit it instead. (this is purely editorial)]]
( ([TIME[2014-05-08 06:40:00 +09:00]] 版))
<http://html5.org/r/8612>
- [12] [CITE[Move the normative bits of the picture spec to the HTML spec. · 60e9bbd · ResponsiveImagesCG/picture-element]]
( ([TIME[2014-07-01 07:10:27 +09:00]] 版))
<https://github.com/ResponsiveImagesCG/picture-element/commit/60e9bbd1514d7c51dabab5fb750881e9f3e6a478#diff-36cd38f49b9afa08222c0dc9ebfe35ebR91>
]REFS]
[16] [[HTML Standard]] では暫定的に [DFN[[CODE(HTMLe)@en[[[imgcandidate]]]]]]
[[要素]]と呼ばれていました [SRC[>>15, >>12]]。
;; [14] [CODE(HTMLa)@en[[[srcset]]]] [[属性]]の項も参照。
[17] [CITE@en[Merge source element definitions · whatwg/html@d8f4b79]]
([TIME[2016-04-26 20:47:18 +09:00]] 版)
<https://github.com/whatwg/html/commit/d8f4b792dcaa6e205a7af2c074ee59cd838717d7>