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:
parent
374c89be01
commit
d5d646528e
|
@ -327,7 +327,7 @@ find_tag(char *tag)
|
||||||
do {
|
do {
|
||||||
tagc = tag[i];
|
tagc = tag[i];
|
||||||
|
|
||||||
if(tagc == 0 &&
|
if((tagc == 0 || tagc == ISO_slash) &&
|
||||||
tags[first][i] == 0) {
|
tags[first][i] == 0) {
|
||||||
return first;
|
return first;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue