From f052367e5e44e4445ca78aaf11bec1680d91a57a Mon Sep 17 00:00:00 2001 From: Borgen Date: Sun, 22 Sep 2024 10:08:01 +0300 Subject: [PATCH] Add lang to html element attributes (#41) * Add lang to html element attributes * Add changelog entry and bump version --- CHANGELOG.md | 4 ++++ hypermedia/types/attributes.py | 1 + pyproject.toml | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 16f4a50..693d0ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ ## Latest Changes +## Version 5.3.1 + +* Adds `lang` as an attribute to the `Html` element. + ## Version 5.3.0 ### Feature diff --git a/hypermedia/types/attributes.py b/hypermedia/types/attributes.py index 3a32ff2..edaa1b4 100644 --- a/hypermedia/types/attributes.py +++ b/hypermedia/types/attributes.py @@ -233,6 +233,7 @@ class GlobalAttrs(HtmlAndEventAttrs, HtmxAttrs, HyperscriptAttrs, total=False): class HtmlTagAttrs(HypermediaAttrs, total=False): """Common attributes for HTML elements.""" + lang: str xmlns: str diff --git a/pyproject.toml b/pyproject.toml index 864a1fa..9e64a16 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "hypermedia" -version = "5.3.0" +version = "5.3.1" description = "An opinionated way to work with html in pure python with htmx support." authors = ["Thomas Borgen "] readme = "README.md"