|
|
@@ -390,6 +390,12 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
const value = input.getAttribute(DOM.inputValueAttributeName(this.options.sessionId));
|
|
|
input.setAttribute("value", value || "");
|
|
|
});
|
|
|
+ this.doc.querySelectorAll("input[type=radio], input[type=checkbox]").forEach(input => {
|
|
|
+ const value = input.getAttribute(DOM.inputValueAttributeName(this.options.sessionId));
|
|
|
+ if (value == "true") {
|
|
|
+ input.setAttribute("checked", "");
|
|
|
+ }
|
|
|
+ });
|
|
|
this.doc.querySelectorAll("textarea").forEach(textarea => {
|
|
|
const value = textarea.getAttribute(DOM.inputValueAttributeName(this.options.sessionId));
|
|
|
textarea.textContent = value || "";
|