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,