From bf188ec43c02a31fcb29c31997ab41821f299556 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 1 Nov 2024 01:46:42 +0000 Subject: [PATCH] Update elements --- CHANGELOG.md | 2 ++ domify/html_elements.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e43a816..c180ca7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog ## [Unreleased] +### HTML spec +- Add the `alpha` and `colorspace` attributes to the `input` element. ## [0.4.5] - 2024-09-30 ### Changed diff --git a/domify/html_elements.py b/domify/html_elements.py index 9df3b42..a7fc249 100644 --- a/domify/html_elements.py +++ b/domify/html_elements.py @@ -629,9 +629,11 @@ class Input(HtmlElement): is_empty = True element_attributes = { "accept": v.attribute_str, + "alpha": v.attribute_bool, "alt": v.attribute_str, "autocomplete": v.attribute_str, "checked": v.attribute_bool, + "colorspace": {"limited-srgb", "display-p3"}, "dirname": v.attribute_str, "disabled": v.attribute_bool, "form": v.attribute_str,