aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2008-12-07 16:22:19 -0300
committerJorge Arellano Cid <jcid@dillo.org>2008-12-07 16:22:19 -0300
commite01ab3db2deae5f6e6348e428ffaf65d811846be (patch)
treef45bbcf325057c043a675e2d6a40ebf07df68da3 /src
parent58aaa5c9ee0a674a1a29f95c9fe047540fc44df1 (diff)
Made the parser recognize "[^ ]/>"-terminated XML elements.
Diffstat (limited to 'src')
-rw-r--r--src/html.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/html.cc b/src/html.cc
index 88607395..bc95fe09 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -3530,9 +3530,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);
/* This was a close tag */