Skip to content

Commit a6f97b8

Browse files
authored
🐛 FIX: do not close input tag (#195)
Remove closing tag from `<input>`, since this is a void element: https://developer.mozilla.org/en-US/docs/Glossary/Void_element
1 parent e258b45 commit a6f97b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sphinx_design/tabs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ def visit_tab_input(self, node):
183183

184184

185185
def depart_tab_input(self, node):
186-
self.body.append("</input>")
186+
# note do not add a closing tag, since this is a void element:
187+
# https://developer.mozilla.org/en-US/docs/Glossary/Void_element
188+
pass
187189

188190

189191
def visit_tab_label(self, node):

0 commit comments

Comments
 (0)