Added support for self closing tags.

XHTML requires self closing tags to be used for empty tags, so we need to recognize them.
This commit is contained in:
Oliver Schmidt 2013-02-19 00:49:01 +01:00
parent 374c89be01
commit d5d646528e

View File

@ -327,7 +327,7 @@ find_tag(char *tag)
do {
tagc = tag[i];
if(tagc == 0 &&
if((tagc == 0 || tagc == ISO_slash) &&
tags[first][i] == 0) {
return first;
}