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); }