Procházet zdrojové kódy

replaced innerText with textContent

Gildas před 7 roky
rodič
revize
53c6aebc48
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      lib/single-file/single-file-core.js

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

@@ -358,7 +358,7 @@ const SingleFileCore = (() => {
 				const cssRules = [];
 				if (style.sheet) {
 					processRules(style.sheet.cssRules, cssRules);
-					style.innerText = cssRules.join("");
+					style.textContent = cssRules.join("");
 				}
 			});