From b00d17199a655ca3384f454533c3b13f674a79f0 Mon Sep 17 00:00:00 2001 From: Peter Murphy <26548438+ptrfrncsmrph@users.noreply.github.com> Date: Tue, 25 Jan 2022 20:51:21 -0500 Subject: [PATCH] Add loading attribute for img and iframe --- codegen/consts.js | 1 + codegen/react-html-attributes.json | 2 ++ src/React/Basic/DOM/Generated.purs | 2 ++ 3 files changed, 5 insertions(+) diff --git a/codegen/consts.js b/codegen/consts.js index 863ef43..9021ffa 100644 --- a/codegen/consts.js +++ b/codegen/consts.js @@ -50,6 +50,7 @@ module.exports.types = { "formNoValidate": "Boolean", "hidden": "Boolean", "itemScope": "Boolean", + "loading": "String", "loop": "Boolean", "maxLength": "Int", "minLength": "Int", diff --git a/codegen/react-html-attributes.json b/codegen/react-html-attributes.json index e4165e5..d793574 100644 --- a/codegen/react-html-attributes.json +++ b/codegen/react-html-attributes.json @@ -282,6 +282,7 @@ ], "iframe": [ "height", + "loading", "name", "sandbox", "scrolling", @@ -291,6 +292,7 @@ "img": [ "alt", "height", + "loading", "name", "sizes", "src", diff --git a/src/React/Basic/DOM/Generated.purs b/src/React/Basic/DOM/Generated.purs index e039366..0f182f0 100644 --- a/src/React/Basic/DOM/Generated.purs +++ b/src/React/Basic/DOM/Generated.purs @@ -7879,6 +7879,7 @@ type Props_iframe = , keyParams :: String , keyType :: String , lang :: String + , loading :: String , marginHeight :: String , marginWidth :: String , maxLength :: Int @@ -8040,6 +8041,7 @@ type Props_img = , keyParams :: String , keyType :: String , lang :: String + , loading :: String , marginHeight :: String , marginWidth :: String , maxLength :: Int