aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2009-01-23 16:50:20 -0300
committerJorge Arellano Cid <jcid@dillo.org>2009-01-23 16:50:20 -0300
commit9df15efd4e1e782f406f1f045361c50cd615759e (patch)
treeff60869205f866e7d94d9e733fa42eeca179fe87
parentf7f18bf2149bf544cd2b71a11b3a88aeb2b1532d (diff)
Bug fix: stop parsing right after open tag when stop_parser is set.
-rw-r--r--src/html.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/html.cc b/src/html.cc
index a367fe44..a8d10a47 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -3382,6 +3382,8 @@ static void Html_process_tag(DilloHtml *html, char *tag, int tagsize)
/* Call the open function for this tag */
_MSG("Open : %s\n", Tags[ni].name);
Tags[ni].open (html, tag, tagsize);
+ if (html->stop_parser)
+ break;
/* Request inmediate close for elements with forbidden close tag. */
/* TODO: XHTML always requires close tags. A simple implementation