From a8858eb93ee666d669c272ec2ba1ade89e81177c Mon Sep 17 00:00:00 2001 From: Juan Carlos Date: Mon, 16 Nov 2020 15:15:05 -0300 Subject: htmlgen: Add lazy loading (#15986) --- lib/pure/htmlgen.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/pure/htmlgen.nim') diff --git a/lib/pure/htmlgen.nim b/lib/pure/htmlgen.nim index ba50a4a6e..acec05832 100644 --- a/lib/pure/htmlgen.nim +++ b/lib/pure/htmlgen.nim @@ -333,12 +333,12 @@ macro i*(e: varargs[untyped]): untyped = macro iframe*(e: varargs[untyped]): untyped = ## Generates the HTML ``iframe`` element. - result = xmlCheckedTag(e, "iframe", "src srcdoc name sandbox width height" & + result = xmlCheckedTag(e, "iframe", "src srcdoc name sandbox width height loading" & commonAttr) macro img*(e: varargs[untyped]): untyped = ## Generates the HTML ``img`` element. - result = xmlCheckedTag(e, "img", "crossorigin usemap ismap height width" & + result = xmlCheckedTag(e, "img", "crossorigin usemap ismap height width loading" & commonAttr, "src alt", true) macro input*(e: varargs[untyped]): untyped = -- cgit 1.4.1-2-gfad0