[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>

[18] [CITE@en[Editorial: restructure the <img>-related sections]]
([[zcorpan]]著, [TIME[2016-09-09 17:04:29 +09:00]])
<https://github.com/whatwg/html/commit/819272910bb1355bb3c45dc4976d71c1152eb723>

[FIG(quote)[
[FIGCAPTION[
[19] [CITE[ARIB TR-B39]]
([TIME[2016-07-25 17:01:00 +09:00]])
<http://www.arib.or.jp/english/html/overview/doc/4-TR-B39v1_0-1p4.pdf#page=188>
]FIGCAPTION]

> 受信機内蔵音を再生するためには、 audio タグの source 要素で type 属 性
> に’audio.X-arib-romsound’を指定し、src に以下の URI を指定する。
>  romsound://<sound_id>

]FIG]
