From: coltware@gmail.com Date: Tue, 10 Nov 2009 17:39:21 +0000 (+0000) Subject: input@type=password for XHTML(ez,y!) if istyle is null or invalid , append istyle=4 X-Git-Tag: v0.14.1~108 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=38cacb1e5dbed431c5d070b63611e24bdb997d20;p=modchxj%2Fmod_chxj.git input@type=password for XHTML(ez,y!) if istyle is null or invalid , append istyle=4 --- diff --git a/src/chxj_jxhtml.c b/src/chxj_jxhtml.c index f4dc3b5d..2fc7bfc5 100755 --- a/src/chxj_jxhtml.c +++ b/src/chxj_jxhtml.c @@ -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. */ /*--------------------------------------------------------------------------*/ diff --git a/src/chxj_xhtml_mobile_1_0.c b/src/chxj_xhtml_mobile_1_0.c index 01aebf01..0a87e676 100755 --- a/src/chxj_xhtml_mobile_1_0.c +++ b/src/chxj_xhtml_mobile_1_0.c @@ -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=\"");