Skip to content

Commit 7707ce7

Browse files
committed
Update CR4 snapshot to use HTML51
1 parent 3384381 commit 7707ce7

File tree

2 files changed

+40
-35
lines changed

2 files changed

+40
-35
lines changed

‎releases/CR4.html

+28-24
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@
836836
</style>
837837
<link rel="stylesheet" href="https://www.w3.org/StyleSheets/TR/2016/W3C-CR">
838838
<link rel="canonical" href="https://www.w3.org/TR/html-media-capture/">
839-
<meta name="generator" content="ReSpec 16.0.0">
839+
<meta name="generator" content="ReSpec 16.2.0">
840840
<script id="initialUserConfig" type="application/json">
841841
{
842842
"specStatus": "CR",
@@ -1041,7 +1041,7 @@ <h2 id="x1.-introduction"><span class="secno">1. </span> Introduction
10411041
<p><em>This section is non-normative.</em></p>
10421042
<p data-link-for="HTMLInputElement">
10431043
The <cite>HTML Media Capture</cite> specification extends the
1044-
<a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/#htmlinputelement"><code>HTMLInputElement</code></a> interface with a <a href="#dom-htmlinputelement-capture" class="internalDFN" data-link-type="dfn"><code>capture</code></a> attribute. The
1044+
<a data-link-type="dfn" href="https://www.w3.org/TR/html51/sec-forms.html#htmlinputelement-htmlinputelement"><code>HTMLInputElement</code></a> interface with a <a href="#dom-htmlinputelement-capture" class="internalDFN" data-link-type="dfn"><code>capture</code></a> attribute. The
10451045
<a href="#dom-htmlinputelement-capture" class="internalDFN" data-link-type="dfn"><code>capture</code></a> attribute allows authors to declaratively request use of a <a href="#dfn-media-capture-mechanism" class="internalDFN" data-link-type="dfn">media capture mechanism</a>,
10461046
such as a camera or microphone, from within a file upload control, for capturing media on the spot.
10471047
</p>
@@ -1073,14 +1073,15 @@ <h2 id="x2.-conformance"><span class="secno">2. </span>Conformance</h2>
10731073
<h2 id="x3.-terminology"><span class="secno">3. </span> Terminology
10741074
</h2>
10751075
<p>
1076-
The <dfn data-dfn-type="dfn" id="dfn-input"><a href="https://html.spec.whatwg.org/multipage/#the-input-element"><code>input</code></a></dfn> element, its <dfn data-dfn-type="dfn" id="dfn-type"><a href="https://html.spec.whatwg.org/multipage/#attr-input-type"><code>type</code></a></dfn> attribute,
1077-
<dfn data-dfn-for="" data-dfn-type="dfn" id="dom-htmlinputelement" data-idl="" data-title="HTMLInputElement"><a href="https://html.spec.whatwg.org/multipage/#htmlinputelement"><code>HTMLInputElement</code></a></dfn> interface,
1078-
<dfn data-dfn-type="dfn" id="dfn-accept"><a href="https://html.spec.whatwg.org/multipage/#attr-input-accept"><code>accept</code></a></dfn> attribute, <dfn data-dfn-type="dfn" id="dfn-file-upload"><a href="https://html.spec.whatwg.org/multipage/#file-upload-state-(type=file)">File
1079-
Upload</a></dfn> state, <dfn data-dfn-type="dfn" id="dfn-enumerated-attribute"><a href="https://html.spec.whatwg.org/multipage/#enumerated-attribute">enumerated attribute</a></dfn>,
1080-
<dfn data-dfn-type="dfn" id="dfn-missing-value-default"><a href="https://html.spec.whatwg.org/multipage/#missing-value-default">missing value
1081-
default</a></dfn>, <dfn data-dfn-type="dfn" id="dfn-invalid-value-default"><a href="https://html.spec.whatwg.org/multipage/#invalid-value-default">invalid
1082-
value default</a></dfn>, and <dfn data-dfn-type="dfn" id="dfn-reflect"><a href="https://html.spec.whatwg.org/multipage/#reflect">reflect</a></dfn> are defined in [<cite><a class="bibref" href="#bib-HTML51">HTML51</a></cite>].
1076+
The <dfn data-dfn-type="dfn" id="dfn-input"><a href="https://www.w3.org/TR/html51/sec-forms.html#the-input-element"><code>input</code></a></dfn> element, its <dfn data-dfn-type="dfn" id="dfn-type"><a href="https://www.w3.org/TR/html51/sec-forms.html#element-attrdef-input-type"><code>type</code></a></dfn> attribute,
1077+
<dfn data-dfn-for="" data-dfn-type="dfn" id="dom-htmlinputelement" data-idl="" data-title="HTMLInputElement"><a href="https://www.w3.org/TR/html51/sec-forms.html#htmlinputelement-htmlinputelement"><code>HTMLInputElement</code></a></dfn> interface,
1078+
<dfn data-dfn-type="dfn" id="dfn-accept"><a href="https://www.w3.org/TR/html51/sec-forms.html#element-attrdef-input-accept"><code>accept</code></a></dfn> attribute, <dfn data-dfn-type="dfn" id="dfn-file-upload"><a href="https://www.w3.org/TR/html51/sec-forms.html#element-statedef-input-file-upload">File
1079+
Upload</a></dfn> state, <dfn data-dfn-type="dfn" id="dfn-enumerated-attribute"><a href="https://www.w3.org/TR/html51/infrastructure.html#enumerated-attributes">enumerated attribute</a></dfn>,
1080+
<dfn data-dfn-type="dfn" id="dfn-missing-value-default"><a href="https://www.w3.org/TR/html51/infrastructure.html#missing-value-default">missing value
1081+
default</a></dfn>, <dfn data-dfn-type="dfn" id="dfn-invalid-value-default"><a href="https://www.w3.org/TR/html51/infrastructure.html#invalid-value-default">invalid
1082+
value default</a></dfn>, and <dfn data-dfn-type="dfn" id="dfn-reflect"><a href="https://www.w3.org/TR/html51/infrastructure.html#reflection">reflect</a></dfn> are defined in [<cite><a class="bibref" href="#bib-HTML51">HTML51</a></cite>].
10831083
</p>
1084+
<p>The <dfn cite="!custom-elements#cereactions" data-dfn-type="dfn" id="dfn-x[cereactions]"><code>[CEReactions]</code></dfn> WebIDL extended attribute is defined in [<cite><a class="bibref" href="#bib-custom-elements">custom-elements</a></cite>].</p>
10841085
<p>
10851086
The <dfn data-dfn-type="dfn" id="dfn-videofacingmodeenum"><a href="https://www.w3.org/TR/mediacapture-streams/#def-constraint-facingMode"><code>VideoFacingModeEnum</code></a></dfn> enumeration is defined in [<cite><a class="bibref" href="#bib-MEDIACAPTURE-STREAMS">MEDIACAPTURE-STREAMS</a></cite>].
10861087
</p>
@@ -1090,7 +1091,7 @@ <h2 id="x3.-terminology"><span class="secno">3. </span> Terminology
10901091
<p>
10911092
In this specification, the term <dfn data-dfn-type="dfn" id="dfn-capture-control-type">capture control type</dfn> refers to a specialized type of a file picker control that is optimized, for the user, for directly capturing media of a MIME
10921093
type specified by the
1093-
<a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/#attr-input-accept"><code>accept</code></a> attribute, using a <a href="#dfn-media-capture-mechanism" class="internalDFN" data-link-type="dfn">media capture mechanism</a> in its
1094+
<a data-link-type="dfn" href="https://www.w3.org/TR/html51/sec-forms.html#element-attrdef-input-accept"><code>accept</code></a> attribute, using a <a href="#dfn-media-capture-mechanism" class="internalDFN" data-link-type="dfn">media capture mechanism</a> in its
10941095
<a href="#dfn-preferred-facing-mode" class="internalDFN" data-link-type="dfn">preferred facing mode</a>.
10951096
</p>
10961097
<p>
@@ -1117,8 +1118,9 @@ <h2 id="x4.-security-and-privacy-considerations"><span class="secno">4. </span>
11171118
</li>
11181119
</ul>
11191120
<p>
1120-
This specification builds upon the security and privacy protections provided by the <code>&lt;input type="file"&gt;</code> [<cite><a class="bibref" href="#bib-HTML51">HTML51</a></cite>] and the [<cite><a class="bibref" href="#bib-FILE-API">FILE-API</a></cite>]
1121-
specifications; in particular, it is expected that any offer to start capturing content from the user’s device would require a specific user interaction on an HTML element that is entirely controlled by the user agent.
1121+
This specification builds upon the security and privacy protections provided by the <code>&lt;input type="file"&gt;</code> [<cite><a class="bibref" href="#bib-HTML51">HTML51</a></cite>] and the [
1122+
<cite><a class="bibref" href="#bib-FILE-API">FILE-API</a></cite>] specifications; in particular, it is expected that any offer to start capturing content from the user’s device would require a specific user interaction on an HTML element that
1123+
is entirely controlled by the user agent.
11221124
</p>
11231125
<p>
11241126
Implementors should take care to prevent additional age of privacy-sensitive data from captured media. For instance, embedding the user’s location in the metadata of captured media (e.g. EXIF) might transmit more private data than the user is expecting.
@@ -1129,18 +1131,18 @@ <h2 id="x4.-security-and-privacy-considerations"><span class="secno">4. </span>
11291131
<h2 id="x5.-the-capture-attribute"><span class="secno">5. </span> The <dfn data-dfn-for="htmlinputelement" data-dfn-type="dfn" id="dom-htmlinputelement-capture" data-idl="" data-title="capture"><code>capture</code></dfn> attribute
11301132
</h2>
11311133
<p>
1132-
When an <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/#the-input-element"><code>input</code></a> element's <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/#attr-input-type"><code>type</code></a> attribute is in the <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/#file-upload-state-(type=file)">File
1133-
Upload</a> state, and its <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/#attr-input-accept"><code>accept</code></a> attribute is specified, the rules in this section apply.
1134+
When an <a data-link-type="dfn" href="https://www.w3.org/TR/html51/sec-forms.html#the-input-element"><code>input</code></a> element's <a data-link-type="dfn" href="https://www.w3.org/TR/html51/sec-forms.html#element-attrdef-input-type"><code>type</code></a> attribute is in the <a data-link-type="dfn" href="https://www.w3.org/TR/html51/sec-forms.html#element-statedef-input-file-upload">File
1135+
Upload</a> state, and its <a data-link-type="dfn" href="https://www.w3.org/TR/html51/sec-forms.html#element-attrdef-input-accept"><code>accept</code></a> attribute is specified, the rules in this section apply.
11341136
</p>
11351137
<div>
1136-
<pre class="def idl"><span class="idlInterface" id="idl-def-htmlinputelement-partial-1" data-idl="" data-title="HTMLInputElement">partial interface <span class="idlInterfaceID"><a data-lt="HTMLInputElement" data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/#htmlinputelement" data-for=""><code>HTMLInputElement</code></a></span> {
1138+
<pre class="def idl"><span class="idlInterface" id="idl-def-htmlinputelement-partial-1" data-idl="" data-title="HTMLInputElement">partial interface <span class="idlInterfaceID"><a data-lt="HTMLInputElement" data-link-type="dfn" href="https://www.w3.org/TR/html51/sec-forms.html#htmlinputelement-htmlinputelement" data-for=""><code>HTMLInputElement</code></a></span> {
11371139
<span class="idlAttribute" id="idl-def-htmlinputelement-capture" data-idl="" data-title="capture" data-dfn-for="htmlinputelement"> [<span class="extAttr"><span class="extAttrName"><a href="https://html.spec.whatwg.org/multipage/#cereactions">CEReactions</a></span></span>]
11381140
attribute <span class="idlAttrType"><a href="https://heycam..io/webidl/#idl-DOMString">DOMString</a></span> <span class="idlAttrName"><a data-lt="capture" href="#dom-htmlinputelement-capture" class="internalDFN" data-link-type="dfn" data-for="HTMLInputElement"><code>capture</code></a></span>;</span>
11391141
};</span></pre>
11401142
</div>
11411143
<div>
11421144
<p>
1143-
The <a href="#dom-htmlinputelement-capture" class="internalDFN" data-link-type="dfn"><code>capture</code></a> attribute is an <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/#enumerated-attribute">enumerated attribute</a> whose state specifies the <a href="#dfn-preferred-facing-mode" class="internalDFN" data-link-type="dfn">preferred facing mode</a> for the <a href="#dfn-media-capture-mechanism" class="internalDFN" data-link-type="dfn">media
1145+
The <a href="#dom-htmlinputelement-capture" class="internalDFN" data-link-type="dfn"><code>capture</code></a> attribute is an <a data-link-type="dfn" href="https://www.w3.org/TR/html51/infrastructure.html#enumerated-attributes">enumerated attribute</a> whose state specifies the <a href="#dfn-preferred-facing-mode" class="internalDFN" data-link-type="dfn">preferred facing mode</a> for the <a href="#dfn-media-capture-mechanism" class="internalDFN" data-link-type="dfn">media
11441146
capture mechanism</a>.
11451147
</p>
11461148
<p>
@@ -1154,8 +1156,8 @@ <h2 id="x5.-the-capture-attribute"><span class="secno">5. </span> The <dfn data-
11541156
<var>implementation-specific</var> state.
11551157
</p>
11561158
<p>
1157-
The <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/#missing-value-default">missing value default</a> is the
1158-
<var>implementation-specific</var> state. The <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/#invalid-value-default">invalid value
1159+
The <a data-link-type="dfn" href="https://www.w3.org/TR/html51/infrastructure.html#missing-value-default">missing value default</a> is the
1160+
<var>implementation-specific</var> state. The <a data-link-type="dfn" href="https://www.w3.org/TR/html51/infrastructure.html#invalid-value-default">invalid value
11591161
default</a> is also the <var>implementation-specific</var> state.
11601162
</p>
11611163
<div class="note">
@@ -1166,7 +1168,7 @@ <h2 id="x5.-the-capture-attribute"><span class="secno">5. </span> The <dfn data-
11661168
</p>
11671169
</div>
11681170
<p>
1169-
The <a href="#dom-htmlinputelement-capture" class="internalDFN" data-link-type="dfn"><code>capture</code></a> IDL attribute <em class="rfc2119" title="MUST">MUST</em> <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/#reflect">reflect</a> the respective content attribute of the same name.
1171+
The <a href="#dom-htmlinputelement-capture" class="internalDFN" data-link-type="dfn"><code>capture</code></a> IDL attribute <em class="rfc2119" title="MUST">MUST</em> <a data-link-type="dfn" href="https://www.w3.org/TR/html51/infrastructure.html#reflection">reflect</a> the respective content attribute of the same name.
11701172
</p>
11711173
<p>
11721174
When the <a href="#dom-htmlinputelement-capture" class="internalDFN" data-link-type="dfn"><code>capture</code></a> attribute is specified, the <a href="#dfn-user-agent" class="internalDFN" data-link-type="dfn">user agent</a>
@@ -1185,7 +1187,7 @@ <h2 id="x5.-the-capture-attribute"><span class="secno">5. </span> The <dfn data-
11851187
</div>
11861188
</div>
11871189
<p>
1188-
If the <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/#attr-input-accept"><code>accept</code></a> attribute's value is set to a MIME type that has no associated <a href="#dfn-capture-control-type" class="internalDFN"
1190+
If the <a data-link-type="dfn" href="https://www.w3.org/TR/html51/sec-forms.html#element-attrdef-input-accept"><code>accept</code></a> attribute's value is set to a MIME type that has no associated <a href="#dfn-capture-control-type" class="internalDFN"
11891191
data-link-type="dfn">capture control type</a>, the <a href="#dfn-user-agent" class="internalDFN" data-link-type="dfn">user agent</a> <em class="rfc2119" title="MUST">MUST</em> act as if there was no <a href="#dom-htmlinputelement-capture"
11901192
class="internalDFN" data-link-type="dfn"><code>capture</code></a> attribute.
11911193
</p>
@@ -1299,7 +1301,7 @@ <h2 id="a.-examples"><span class="secno">A. </span> Examples
12991301
</li>
13001302
</ul>
13011303
<p data-link-for="HTMLInputElement">
1302-
When an <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/#the-input-element"><code>input</code></a> element's <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/#attr-input-accept"><code>accept</code></a> attribute is set to
1304+
When an <a data-link-type="dfn" href="https://www.w3.org/TR/html51/sec-forms.html#the-input-element"><code>input</code></a> element's <a data-link-type="dfn" href="https://www.w3.org/TR/html51/sec-forms.html#element-attrdef-input-accept"><code>accept</code></a> attribute is set to
13031305
<code>image/*</code> and the <a href="#dom-htmlinputelement-capture" class="internalDFN" data-link-type="dfn"><code>capture</code></a> attribute is specified as in the <a href="#example-1">Example 1</a> or <a href="#example-4">Example 4</a>,
13041306
the file picker may render as presented on the right side. When the attribute is not specified, the file picker may render as represented on the left side.
13051307
</p>
@@ -1316,8 +1318,6 @@ <h2 id="b.-references"><span class="secno">B. </span>References</h2>
13161318
<h3 id="b.1-normative-references"><span class="secno">B.1 </span>Normative references</h3>
13171319
<dl class="bibliography"><dt id="bib-FILE-API">[FILE-API]</dt>
13181320
<dd><a href="https://www.w3.org/TR/FileAPI/"><cite>File API</cite></a>. Arun Ranganathan; Jonas Sicking. W3C. 21 April 2015. W3C Working Draft. URL: <a href="https://www.w3.org/TR/FileAPI/">https://www.w3.org/TR/FileAPI/</a>
1319-
</dd><dt id="bib-HTML">[HTML]</dt>
1320-
<dd><a href="https://html.spec.whatwg.org/multipage/"><cite>HTML Standard</cite></a>. Anne van Kesteren; Domenic Denicola; Ian Hickson; Philip Jägenstedt; Simon Pieters. WHATWG. Living Standard. URL: <a href="https://html.spec.whatwg.org/multipage/">https://html.spec.whatwg.org/multipage/</a>
13211321
</dd><dt id="bib-HTML51">[HTML51]</dt>
13221322
<dd><a href="https://www.w3.org/TR/html51/"><cite>HTML 5.1 2nd Edition</cite></a>. Steve Faulkner; Arron Eicholz; Travis Leithead; Alex Danilo. W3C. 3 August 2017. W3C Proposed Recommendation. URL: <a href="https://www.w3.org/TR/html51/">https://www.w3.org/TR/html51/</a>
13231323
</dd><dt id="bib-MEDIACAPTURE-STREAMS">[MEDIACAPTURE-STREAMS]</dt>
@@ -1328,12 +1328,16 @@ <h3 id="b.1-normative-references"><span class="secno">B.1 </span>Normative refer
13281328
<dd><a href="https://tools.ietf.org/html/rfc2119"><cite>Key words for use in RFCs to Indicate Requirement Levels</cite></a>. S. Bradner. IETF. March 1997. Best Current Practice. URL: <a href="https://tools.ietf.org/html/rfc2119">https://tools.ietf.org/html/rfc2119</a>
13291329
</dd><dt id="bib-WEBIDL-1">[WEBIDL-1]</dt>
13301330
<dd><a href="https://www.w3.org/TR/2016/REC-WebIDL-1-20161215/"><cite>WebIDL Level 1</cite></a>. Cameron McCormack. W3C. 15 December 2016. W3C Recommendation. URL: <a href="https://www.w3.org/TR/2016/REC-WebIDL-1-20161215/">https://www.w3.org/TR/2016/REC-WebIDL-1-20161215/</a>
1331+
</dd><dt id="bib-custom-elements">[custom-elements]</dt>
1332+
<dd><a href="https://www.w3.org/TR/custom-elements/"><cite>Custom Elements</cite></a>. Domenic Denicola. W3C. 13 October 2016. W3C Working Draft. URL: <a href="https://www.w3.org/TR/custom-elements/">https://www.w3.org/TR/custom-elements/</a>
13311333
</dd>
13321334
</dl>
13331335
</section>
13341336
<section id="informative-references">
13351337
<h3 id="b.2-informative-references"><span class="secno">B.2 </span>Informative references</h3>
1336-
<dl class="bibliography"><dt id="bib-WEBIDL">[WEBIDL]</dt>
1338+
<dl class="bibliography"><dt id="bib-HTML">[HTML]</dt>
1339+
<dd><a href="https://html.spec.whatwg.org/multipage/"><cite>HTML Standard</cite></a>. Anne van Kesteren; Domenic Denicola; Ian Hickson; Philip Jägenstedt; Simon Pieters. WHATWG. Living Standard. URL: <a href="https://html.spec.whatwg.org/multipage/">https://html.spec.whatwg.org/multipage/</a>
1340+
</dd><dt id="bib-WEBIDL">[WEBIDL]</dt>
13371341
<dd><a href="https://heycam..io/webidl/"><cite>Web IDL</cite></a>. Cameron McCormack; Boris Zbarsky; Tobie Langel. W3C. 15 December 2016. W3C Editor's Draft. URL: <a href="https://heycam..io/webidl/">https://heycam..io/webidl/</a>
13381342
</dd>
13391343
</dl>

0 commit comments

Comments
 (0)