Selaa lähdekoodia

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

Gildas 4 vuotta sitten
vanhempi
sitoutus
c7ac5823d0
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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 => {