OSDN Git Service

input@type=password for XHTML(ez,y!) if istyle is null or invalid , append istyle=4
authorcoltware@gmail.com <coltware@gmail.com>
Tue, 10 Nov 2009 17:39:21 +0000 (17:39 +0000)
committerAtsushi Konno <atkonn@gmail.com>
Thu, 10 Dec 2009 03:28:39 +0000 (12:28 +0900)
src/chxj_jxhtml.c
src/chxj_xhtml_mobile_1_0.c

index f4dc3b5..2fc7bfc 100755 (executable)
@@ -1951,6 +1951,9 @@ s_jxhtml_start_input_tag(void *pdoc, Node *node)
     W_V(attr_istyle);
     W_L("\"");
   }
+  else if(attr_type && STRCASEEQ('p','P',"password",attr_type)) {
+    W_L(" istyle=\"4\"");
+  }
   /*--------------------------------------------------------------------------*/
   /* The figure is default for the password.                                  */
   /*--------------------------------------------------------------------------*/
index 01aebf0..0a87e67 100755 (executable)
@@ -1842,6 +1842,9 @@ s_xhtml_1_0_start_input_tag(void *pdoc, Node *node)
     W_V(attr_istyle);
     W_L("\"");
   }
+  else if(attr_type && STRCASEEQ('p','P',"password",attr_type)) {
+    W_L(" istyle=\"4\"");
+  }
   if (attr_max_length && *attr_max_length) {
     if (chxj_chk_numeric(attr_max_length) == 0) {
       W_L(" maxlength=\"");