Don't close <img>s

This commit is contained in:
blankie 2023-04-06 22:26:51 +07:00
parent f1d727b87c
commit d5fdf03a25
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 1 additions and 1 deletions

View File

@ -52,5 +52,5 @@ std::string Element::serialize() const {
}; // namespace blankie
static inline bool is_autoclosing_tag(const char* tag) {
return !strncmp(tag, "link", 5) || !strncmp(tag, "meta", 5);
return !strncmp(tag, "link", 5) || !strncmp(tag, "meta", 5) || !strncmp(tag, "img", 4);
}