diff options
author | Albin Larsson <mail@albinlarsson.com> | 2018-06-08 13:31:29 +0200 |
---|---|---|
committer | Albin Larsson <mail@albinlarsson.com> | 2018-06-10 18:56:13 +0200 |
commit | a80b31bf98ca14279128ecbf32b13ba748e438fc (patch) | |
tree | 462163f674a86dbf587fd765cae5787efd68b1cc /src/js/captions.js | |
parent | b12eeb0eb7b59671bb887770fc787940e4659a21 (diff) | |
download | plyr-a80b31bf98ca14279128ecbf32b13ba748e438fc.tar.lz plyr-a80b31bf98ca14279128ecbf32b13ba748e438fc.tar.xz plyr-a80b31bf98ca14279128ecbf32b13ba748e438fc.zip |
Fix #1003: Formatted captions issue
Diffstat (limited to 'src/js/captions.js')
-rw-r--r-- | src/js/captions.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/captions.js b/src/js/captions.js index 0baa0820..b3723885 100644 --- a/src/js/captions.js +++ b/src/js/captions.js @@ -222,7 +222,7 @@ const captions = { if (changed) { // Empty the container and create a new child element utils.emptyElement(this.elements.captions); - const caption = utils.createElement('span'); + const caption = utils.createElement('span', utils.getAttributesFromSelector(this.config.selectors.caption)); caption.innerHTML = content; this.elements.captions.appendChild(caption); |