[w3m-dev 03498] Re: parse <!-- ... --> in <script>

* file.c (HTMLlineproc0): tag in textarea
* frame.c (createFrameFile): fix comment processing in frame
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
This commit is contained in:
Fumitoshi UKAI
2002-11-28 16:00:33 +00:00
parent 9307310738
commit d6219ea37a
3 changed files with 12 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
/* $Id: frame.c,v 1.21 2002/11/26 17:12:15 ukai Exp $ */
/* $Id: frame.c,v 1.22 2002/11/28 16:00:34 ukai Exp $ */
#include "fm.h"
#include "parsetagx.h"
#include "myctype.h"
@@ -573,8 +573,10 @@ createFrameFile(struct frameset *f, FILE * f1, Buffer *current, int level,
cleanup_line(tmp, HTML_MODE);
p = tmp->ptr;
}
if (status == R_ST_NORMAL || ST_IS_COMMENT(status))
if (status == R_ST_NORMAL)
read_token(tok, &p, &status, 1, 0);
else if (ST_IS_COMMENT(status))
read_token(tok, &p, &status, 0, 0);
else
read_token(tok, &p, &status, 1, 1);
} while (status != R_ST_NORMAL);