Explorar o código

make sure setAttribute is called with 2 params (fix #808)

Gildas %!s(int64=4) %!d(string=hai) anos
pai
achega
c7ac5823d0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/single-file/single-file-core.js

+ 1 - 1
lib/single-file/single-file-core.js

@@ -1065,7 +1065,7 @@ class Processor {
 						const templateElement = doc.createElement("template");
 						templateElement.setAttribute(SHADOW_MODE_ATTRIBUTE_NAME, shadowRootData.mode);
 						if (shadowRootData.delegatesFocus) {
-							templateElement.setAttribute(SHADOW_DELEGATE_FOCUS_ATTRIBUTE_NAME);
+							templateElement.setAttribute(SHADOW_DELEGATE_FOCUS_ATTRIBUTE_NAME, "");
 						}
 						if (shadowRootData.adoptedStyleSheets) {
 							shadowRootData.adoptedStyleSheets.forEach(stylesheetContent => {