OSDN Git Service

*** empty log message ***
authorkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Fri, 9 Jun 2006 08:11:24 +0000 (08:11 +0000)
committerkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Fri, 9 Jun 2006 08:11:24 +0000 (08:11 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/trunk@355 1a406e8e-add9-4483-a2c8-d8cac5b7c224

src/chxj_hdml.c

index 314ffb2..2b84410 100644 (file)
@@ -277,35 +277,45 @@ s_hdml_node_exchange(hdml_t* hdml, Node* node,  int indent)
     if (hdml->hdml_end_flag == 1) 
       continue;
 
-    /*------------------------------------------------------------------------*/
-    /* <HTML>                                                                 */
-    /*------------------------------------------------------------------------*/
-    if (strcasecmp(name, "html") == 0) {
-      hdml->out = s_hdml_start_html_tag(hdml, child);
-      hdml->hdml_br_flag = 0;
-      hdml->out = s_hdml_node_exchange(hdml, child,indent+1);
-      hdml->out = s_hdml_end_html_tag(hdml, child);
+    if (*name == 'h' || *name == 'H') {
+      /*----------------------------------------------------------------------*/
+      /* <HTML>                                                               */
+      /*----------------------------------------------------------------------*/
+      if (strcasecmp(name, "html") == 0) {
+        hdml->out = s_hdml_start_html_tag(hdml, child);
+        hdml->hdml_br_flag = 0;
+        hdml->out = s_hdml_node_exchange(hdml, child,indent+1);
+        hdml->out = s_hdml_end_html_tag(hdml, child);
+      }
+      /*----------------------------------------------------------------------*/
+      /* <HEAD>                                                               */
+      /*----------------------------------------------------------------------*/
+      else
+      if (strcasecmp(name, "head") == 0) {
+        hdml->out = s_hdml_start_head_tag(hdml, child);
+        hdml->hdml_br_flag = 0;
+        hdml->out = s_hdml_node_exchange(hdml, child,indent+1);
+        hdml->out = s_hdml_end_head_tag(hdml, child);
+      }
+      /*----------------------------------------------------------------------*/
+      /* <HR>                                                                 */
+      /*----------------------------------------------------------------------*/
+      else
+      if (strcasecmp(name, "hr") == 0) {
+        hdml->out = s_hdml_start_hr_tag(hdml, child);
+        hdml->out = s_hdml_end_hr_tag(hdml, child);
+      }
     }
     /*------------------------------------------------------------------------*/
     /* <META>                                                                 */
     /*------------------------------------------------------------------------*/
     else
-    if (strcasecmp(name, "meta") == 0) {
+    if ((*name == 'm' || *name == 'M') && strcasecmp(name, "meta") == 0) {
       hdml->out = s_hdml_start_meta_tag(hdml, child);
       hdml->hdml_br_flag = 0;
       hdml->out = s_hdml_end_meta_tag(hdml, child);
     }
     /*------------------------------------------------------------------------*/
-    /* <HEAD>                                                                 */
-    /*------------------------------------------------------------------------*/
-    else
-    if (strcasecmp(name, "head") == 0) {
-      hdml->out = s_hdml_start_head_tag(hdml, child);
-      hdml->hdml_br_flag = 0;
-      hdml->out = s_hdml_node_exchange(hdml, child,indent+1);
-      hdml->out = s_hdml_end_head_tag(hdml, child);
-    }
-    /*------------------------------------------------------------------------*/
     /* <TITLE>                                                                */
     /*------------------------------------------------------------------------*/
     else
@@ -413,14 +423,6 @@ s_hdml_node_exchange(hdml_t* hdml, Node* node,  int indent)
       hdml->out = s_hdml_end_div_tag(hdml, child);
     }
     /*------------------------------------------------------------------------*/
-    /* <HR>                                                                   */
-    /*------------------------------------------------------------------------*/
-    else
-    if (strcasecmp(name, "hr") == 0) {
-      hdml->out = s_hdml_start_hr_tag(hdml, child);
-      hdml->out = s_hdml_end_hr_tag(hdml, child);
-    }
-    /*------------------------------------------------------------------------*/
     /* <CENTER>                                                               */
     /*------------------------------------------------------------------------*/
     else