From 46e778a3aeee8c3d1131cdfe918e0efe4f13eb69 Mon Sep 17 00:00:00 2001 From: Dennis Shtatnov Date: Sun, 25 Mar 2018 20:31:34 -0400 Subject: [PATCH] Remove localName (read only) assignment localName on elements is defined as read only: https://developer.mozilla.org/en-US/docs/Web/API/Element/localName Assigning to it silently failed or throws an exception if running in strict mode. --- lib/vtt.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/vtt.js b/lib/vtt.js index 66ab23f..b91fbf3 100644 --- a/lib/vtt.js +++ b/lib/vtt.js @@ -375,7 +375,6 @@ return null; } var element = window.document.createElement(tagName); - element.localName = tagName; var name = TAG_ANNOTATION[type]; if (name && annotation) { element[name] = annotation.trim();