Browse Source

fix boolean attributes with the web renderer

Evan Almloff 2 năm trước cách đây
mục cha
commit
c5bb4275e6
1 tập tin đã thay đổi với 28 bổ sung0 xóa
  1. 28 0
      packages/interpreter/src/sledgehammer_bindings.rs

+ 28 - 0
packages/interpreter/src/sledgehammer_bindings.rs

@@ -129,6 +129,34 @@ mod js {
             root.appendChild(els[k]);
         }
     }
+    const bool_attrs = {
+        allowfullscreen: true,
+        allowpaymentrequest: true,
+        async: true,
+        autofocus: true,
+        autoplay: true,
+        checked: true,
+        controls: true,
+        default: true,
+        defer: true,
+        disabled: true,
+        formnovalidate: true,
+        hidden: true,
+        ismap: true,
+        itemscope: true,
+        loop: true,
+        multiple: true,
+        muted: true,
+        nomodule: true,
+        novalidate: true,
+        open: true,
+        playsinline: true,
+        readonly: true,
+        required: true,
+        reversed: true,
+        selected: true,
+        truespeed: true,
+      };
     "#;
 
     extern "C" {