From 61d6dddf5dc140cb91007c80713b44aa39c3d352 Mon Sep 17 00:00:00 2001 From: Adam Jaggard Date: Thu, 11 May 2023 20:53:36 +0100 Subject: [PATCH] feat: Media Time Range and Volume Range props (#599) --- src/js/media-time-range.js | 158 +++++++++++++++++++++++++++-------- src/js/media-volume-range.js | 51 +++++++++-- 2 files changed, 168 insertions(+), 41 deletions(-) diff --git a/src/js/media-time-range.js b/src/js/media-time-range.js index 316de177f..a97761c7e 100644 --- a/src/js/media-time-range.js +++ b/src/js/media-time-range.js @@ -3,7 +3,16 @@ import { window, document } from './utils/server-safe-globals.js'; import { MediaUIEvents, MediaUIAttributes } from './constants.js'; import { nouns } from './labels/labels.js'; import { formatAsTimePhrase } from './utils/time.js'; -import { getOrInsertCSSRule, closestComposedNode } from './utils/element-utils.js'; +import { + getOrInsertCSSRule, + closestComposedNode, + getBooleanAttr, + setBooleanAttr, + getNumericAttr, + setNumericAttr, + getStringAttr, + setStringAttr, +} from './utils/element-utils.js'; const DEFAULT_MISSING_TIME_PHRASE = 'video not loaded, unknown time.'; @@ -18,7 +27,7 @@ const updateAriaValueText = (el) => { }; const template = document.createElement('template'); -template.innerHTML = /*html*/` +template.innerHTML = /*html*/ `