Skip to content

Commit 677fe9f

Browse files
committed
Allow id's to be skipped if set to empty string
1 parent c4613f9 commit 677fe9f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/impl/lxml_toolkit_object.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ def init_widget(self):
8282
set_attr = widget.set
8383
d = self.declaration
8484

85-
set_attr("id", d.id)
85+
if v := d.id:
86+
set_attr("id", v)
8687
if v := d.text:
8788
widget.text = v
8889
if v := d.tail:

0 commit comments

Comments
 (0)