瀏覽代碼

replaced innerText with textContent

Gildas 7 年之前
父節點
當前提交
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("");
 				}
 			});