From c5bb4275e69997d60a93a40c76a8da709010be19 Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Fri, 13 Jan 2023 08:48:59 -0600 Subject: [PATCH] fix boolean attributes with the web renderer --- .../interpreter/src/sledgehammer_bindings.rs | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/packages/interpreter/src/sledgehammer_bindings.rs b/packages/interpreter/src/sledgehammer_bindings.rs index a81e16235..61e37c2cb 100644 --- a/packages/interpreter/src/sledgehammer_bindings.rs +++ b/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" {