Просмотр исходного кода

replaced innerText with textContent

Gildas 7 лет назад
Родитель
Сommit
53c6aebc48
1 измененных файлов с 1 добавлено и 1 удалено
  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("");
 				}
 			});