Skip to content

Commit 3c03550

Browse files
committed
fix dashed html attrs
1 parent 78623a0 commit 3c03550

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/idom/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def _vdom_attr_to_html_str(key: str, value: Any) -> tuple[str, str]:
297297

298298
# see list of HTML attributes with dashes in them:
299299
# https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes#attribute_list
300-
DASHED_HTML_ATTRS = {"acceptCharset", "httpEquiv"}
300+
DASHED_HTML_ATTRS = {"accept_charset", "http_equiv"}
301301

302302
# Pattern for delimitting camelCase names (e.g. camelCase to camel-case)
303303
_CAMEL_CASE_SUB_PATTERN = re.compile(r"(?<!^)(?=[A-Z])")

0 commit comments

Comments
 (0)