Skip to content

Commit

Permalink
fix: do not close meta tag in HTML header (lllyasviel#2740)
Browse files Browse the repository at this point in the history
* fixed typo in HTML (extra </meta> tag)

* refactor: remove closing slash for meta tag

as of specification in https://html.com/tags/meta/, meta tagas are null elements:
This element must not contain any content, and does not need a closing tag.

---------

Co-authored-by: Manuel Schmid <[email protected]>
  • Loading branch information
2 people authored and csokun committed Jun 16, 2024
1 parent da3f45d commit 4914177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ui_gradio_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def javascript_html():
head += f'<script type="text/javascript" src="{edit_attention_js_path}"></script>\n'
head += f'<script type="text/javascript" src="{viewer_js_path}"></script>\n'
head += f'<script type="text/javascript" src="{image_viewer_js_path}"></script>\n'
head += f'<meta name="samples-path" content="{samples_path}"></meta>\n'
head += f'<meta name="samples-path" content="{samples_path}">\n'

if args_manager.args.theme:
head += f'<script type="text/javascript">set_theme(\"{args_manager.args.theme}\");</script>\n'
Expand Down

0 comments on commit 4914177

Please sign in to comment.