A Custom Element for <input type="duration">.
References:
- Browser support
- Stable: https://wpt.fyi/results/custom-elements/HTMLElement-attachInternals.html?label=master&label=stable&aligned&view=subtest
- Experimental: https://wpt.fyi/results/custom-elements/HTMLElement-attachInternals.html
- https://webkit.org/blog/13703/release-notes-for-safari-technology-preview-162/
- Web standards
<!-- Include `InputDurationElement` -->
<script src="https://unpkg.com/[email protected]" type="module"></script>
<!-- Render `<input-duration>` -->
<label for="duration">Duration</label>
<input-duration id="duration" name="duration"></input-duration>max(number): Max value of duration in seconds.name(string): Input name.value(number): Default value of duration in seconds.
::part(divider): Divider (:).
hour: Default to:.minute: Default to:.second: Default to empty.
inputDuration.value = numbersets duration value to number in seconds.inputDuration.valuegets duration value to number in seconds.
changefires when duration value changes.
- Support
min - Validation
- Figure out
maxLength,max,size.