Don't close <img>s
This commit is contained in:
parent
f1d727b87c
commit
d5fdf03a25
|
@ -52,5 +52,5 @@ std::string Element::serialize() const {
|
||||||
}; // namespace blankie
|
}; // namespace blankie
|
||||||
|
|
||||||
static inline bool is_autoclosing_tag(const char* tag) {
|
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue