Skip to content

Commit

Permalink
🐛 FIX: do not close input tag (#195)
Browse files Browse the repository at this point in the history
Remove closing tag from `<input>`, since this is a void element: https://developer.mozilla.org/en-US/docs/Glossary/Void_element
  • Loading branch information
chrisjsewell authored May 22, 2024
1 parent e258b45 commit a6f97b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sphinx_design/tabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ def visit_tab_input(self, node):


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


def visit_tab_label(self, node):
Expand Down

0 comments on commit a6f97b8

Please sign in to comment.