From d5fdf03a25bf2d1329ea2c9d001add121ac4d7e2 Mon Sep 17 00:00:00 2001 From: blankie Date: Thu, 6 Apr 2023 22:26:51 +0700 Subject: [PATCH] Don't close s --- blankie/serializer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blankie/serializer.cpp b/blankie/serializer.cpp index 5a72084..611aace 100644 --- a/blankie/serializer.cpp +++ b/blankie/serializer.cpp @@ -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); }