changeset 245:b9b3acde098b

- Fixed a corner case of IN_HEAD flag handling in the HTML parser.
author jcid
date Tue, 27 May 2008 16:09:02 +0200
parents cc728bc1ec2f
children 402ccb8ccb76
files src/html.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/html.cc	Tue May 27 15:32:42 2008 +0200
+++ b/src/html.cc	Tue May 27 16:09:02 2008 +0200
@@ -2043,7 +2043,7 @@
  */
 static void Html_tag_open_head(DilloHtml *html, const char *tag, int tagsize)
 {
-   if (html->InFlags & IN_BODY) {
+   if (html->InFlags & IN_BODY || html->Num_BODY > 0) {
       MSG_HTML("HEAD element must go before the BODY section\n");
       html->ReqTagClose = TRUE;
       return;