Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

Adds capture attribute #1366

Merged
merged 4 commits into from
Apr 17, 2018
Merged

Adds capture attribute #1366

merged 4 commits into from
Apr 17, 2018

Conversation

LJWatson
Copy link
Collaborator

  • First draft (needs careful review)
  • Adds capture to list of allowed attributes
  • Adds capture to the table of allowed attributes per type state
  • Adds capture to the bookkeeping information for each type state
  • Adds section to locally reference capture (pointing to HTML Media Capture as the normative deifnition
  • Will fix HTML media capture #1296 .

* First draft (needs careful review)
* Adds capture to list of allowed attributes
* Adds capture to the table of allowed attributes per type state
* Adds capture to the bookkeeping information for each type state
* Adds section to locally reference capture (pointing to HTML Media Capture as the normative deifnition.
@LJWatson
Copy link
Collaborator Author

Copy link
Collaborator

@chaals chaals left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Device and Sensors WG should be listed in acknowledgements.

This should be listed in changes.

I have not yet reviewed carefully for technical accuracy - it looks OK, but diff format is almost unreadable for this. So that check will take a little more time ;(

@@ -6902,6 +6925,10 @@ You cannot submit this form when the field is incorrect.</samp></pre>
</tr>
</table>

<h6 id="the-capture-attribute">The <code>capture</code> attribute</h6>

The <dfn element-attr for="input"><code>capture</code><dfn> attribute is defined in the [[!html-media-capture]] specification. The <code>capture</a> attribute specifies the preferred facing mode for the media capture mechanism.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mismatched element (opens as code, closed as a.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than defining the attribute in here we should probably refer to the source spec. I will make a PR against the branch to do that.

<{input/checked}>,
<{input/dirname}>,
<{input/dirname}>,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Odd whitespace insertion - probably not critical (although sometimes whitespace oddities break the bikeshed builder).

@@ -1584,6 +1584,7 @@
<dd><{input/autocapitalize}> - Hint for helping to capitalize user input</dd>
<dd><{input/autocomplete}> - Hint for form autofill feature</dd>
<dd><{input/autofocus}> - Automatically focus the form control when the page is loaded</dd>
<dd><{input/capture}> - Specifies the preferred facing mode for the media capture mechanism, defined in [[!html-media-capture]]</dd>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be a direct link for the attribute. As mentioned offline, I will make a PR against your branch to do that.

@LJWatson
Copy link
Collaborator Author

@chaals done.

Fix code error. Point out that looking at the capture spec is important, because there are specific requirements there.
@chaals chaals merged commit 5c9a22e into master Apr 17, 2018
@chaals chaals deleted the ljw-issue1296 branch April 17, 2018 16:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HTML media capture
2 participants