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.