aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-12-01 22:06:04 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-12-01 22:06:04 +0100
commit04b36b54d8cba323e75b74db04d66b3abfeb532b (patch)
tree3a2a826d08fb13fde996f804ee5e95799744d53b
parent74a8390c5ffbcf41bf1361d4e13ec2d85a021d33 (diff)
accept empty elements without space before '/', e.g <a href="foo"/>
-rw-r--r--src/html.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/html.cc b/src/html.cc
index 06d7e650..9f039e6f 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -3479,9 +3479,7 @@ static void Html_process_tag(DilloHtml *html, char *tag, int tagsize)
/* Test for </x>, ReqTagClose, <x /> and <x/> */
if (*start == '/' || /* </x> */
html->ReqTagClose || /* request */
- (tag[tagsize - 2] == '/' && /* XML: */
- (isspace(tag[tagsize - 3]) || /* <x /> */
- (size_t)tagsize == strlen(Tags[ni].name) + 3))) { /* <x/> */
+ (tag[tagsize - 2] == '/')) { /* XML: */
Tags[ni].close (html, ni);
// html->styleEngine->endElement (ni);