about summary refs log tree commit diff stats
path: root/src/LYCharUtils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYCharUtils.c')
-rw-r--r--src/LYCharUtils.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/LYCharUtils.c b/src/LYCharUtils.c
index 8760ec39..2e69073c 100644
--- a/src/LYCharUtils.c
+++ b/src/LYCharUtils.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYCharUtils.c,v 1.100 2009/05/30 11:56:03 tom Exp $
+ * $LynxId: LYCharUtils.c,v 1.101 2009/06/07 16:40:09 tom Exp $
  *
  *  Functions associated with LYCharSets.c and the Lynx version of HTML.c - FM
  *  ==========================================================================
@@ -2737,8 +2737,13 @@ void LYHandleSELECT(HTStructured * me, const BOOL *present,
 	 * Check for unclosed TEXTAREA.
 	 */
 	if (me->inTEXTAREA) {
-	    if (LYBadHTML(me))
-		CTRACE((tfp, "Bad HTML: Missing TEXTAREA end tag\n"));
+	    if (LYBadHTML(me)) {
+		char *msg = NULL;
+
+		HTSprintf0(&msg, "Bad HTML: Missing TEXTAREA end tag\n");
+		LYShowBadHTML(msg);
+		FREE(msg);
+	    }
 	}
 
 	/*
@@ -2812,8 +2817,13 @@ void LYHandleSELECT(HTStructured * me, const BOOL *present,
 	 * Make sure we had a select start tag.
 	 */
 	if (!me->inSELECT) {
-	    if (LYBadHTML(me))
-		CTRACE((tfp, "Bad HTML: Unmatched SELECT end tag\n"));
+	    if (LYBadHTML(me)) {
+		char *msg = NULL;
+
+		HTSprintf0(&msg, "Bad HTML: Unmatched SELECT end tag\n");
+		LYShowBadHTML(msg);
+		FREE(msg);
+	    }
 	    return;
 	}