From 9c46526cfa928f884b06ea78f3f7304bdc626ed1 Mon Sep 17 00:00:00 2001 From: Juan Carlos Date: Fri, 15 Nov 2019 16:23:03 -0300 Subject: [PATCH] Fix htmlgen html lang (#12668) [backport] * Fix HTMLGen enable lang on html tag --- changelog.md | 2 +- lib/pure/htmlgen.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 2618629d0f..2ff0cdf292 100644 --- a/changelog.md +++ b/changelog.md @@ -53,7 +53,7 @@ - `htmlgen` adds [MathML](https://wikipedia.org/wiki/MathML) support (ISO 40314). - `macros.eqIdent` is now invariant to export markers and backtick quotes. - +- `htmlgen.html` allows `lang` on the `` tag and common valid attributes. ## Language additions diff --git a/lib/pure/htmlgen.nim b/lib/pure/htmlgen.nim index 4887e61441..eb9dd9a736 100644 --- a/lib/pure/htmlgen.nim +++ b/lib/pure/htmlgen.nim @@ -321,7 +321,7 @@ macro header*(e: varargs[untyped]): untyped = macro html*(e: varargs[untyped]): untyped = ## generates the HTML ``html`` element. - result = xmlCheckedTag(e, "html", "xmlns", "") + result = xmlCheckedTag(e, "html", "xmlns" & commonAttr, "") macro hr*(): untyped = ## generates the HTML ``hr`` element.