src/chxj_chtml10.c
/**
 * It is a handler who processes the TEXTARE tag.
 *
 * @param pdoc  [i/o] The pointer to the CHTML structure at the output
 *                     destination is specified.
 * @param node   [i]   The TEXTAREA tag node is specified.
 * @return The conversion result is returned.
 */
It is a handler who processes the TEXTARE tag.
@param pdoc  [i/o] The pointer to the CHTML structure at the output
destination is specified.
@param node   [i]   The TEXTAREA tag node is specified.
@return The conversion result is returned.
It is a handler who processes the TEXTARE tag . @param pdoc [ i / o ] The pointer to the CHTML structure at the output destination is specified . @param node [ i ] The TEXTAREA tag node is specified . @return The conversion result is returned .
static char *
s_chtml10_start_textarea_tag(void *pdoc, Node *node) 
{
  Doc         *doc;
  request_rec *r;
  chtml10_t   *chtml10;
  Attr        *attr;
  chtml10 = GET_CHTML10(pdoc);
  doc     = chtml10->doc;
  r       = doc->r;
  chtml10->textarea_flag++;
  W_L("<textarea");
  for (attr = qs_get_attr(doc,node);
       attr;
       attr = qs_get_next_attr(doc,attr)) {
    char *name  = qs_get_attr_name (doc,attr);
    char *value = qs_get_attr_value(doc,attr);
    switch(*name) {
    case 'a':
    case 'A':
      if (strcasecmp(name, "accesskey") == 0 && value && *value != 0) {
        W_L(" accesskey=\"");
        W_V(value);
        W_L("\"");
      }
      break;
    case 'n':
    case 'N':
      if (strcasecmp(name, "name") == 0 && value && *value != 0) {
        W_L(" name=\"");
        W_V(value);
        W_L("\"");
      }
      break;
    case 'r':
    case 'R':
      if (strcasecmp(name, "rows") == 0 && value && *value != 0) {
        W_L(" rows=\"");
        W_V(value);
        W_L("\"");
      }
      break;
    case 'c':
    case 'C':
      if (strcasecmp(name, "cols") == 0 && value && *value != 0) {
        W_L(" cols=\"");
        W_V(value);
        W_L("\"");
      }
      break;
    default:
      break;
    }
  }
  W_L(">");
  return chtml10->out;
}
static char * s_chtml10_start_textarea_tag ( void * pdoc , Node * node ) { Doc * doc ; request_rec * r ; chtml10_t * chtml10 ; Attr * attr ; chtml10 = GET_CHTML10 ( pdoc ) ; doc = chtml10 -> doc ; r = doc -> r ; chtml10 -> textarea_flag ++ ; W_L ( " " ) ; for ( attr = qs_get_attr ( doc , node ) ; attr ; attr = qs_get_next_attr ( doc , attr ) ) { char * name = qs_get_attr_name ( doc , attr ) ; char * value = qs_get_attr_value ( doc , attr ) ; switch ( * name ) { case ' ' : case ' ' : if ( strcasecmp ( name , " " ) == 0 && value && * value != 0 ) { W_L ( " \" " ) ; W_V ( value ) ; W_L ( " \" " ) ; } break ; case ' ' : case ' ' : if ( strcasecmp ( name , " " ) == 0 && value && * value != 0 ) { W_L ( " \" " ) ; W_V ( value ) ; W_L ( " \" " ) ; } break ; case ' ' : case ' ' : if ( strcasecmp ( name , " " ) == 0 && value && * value != 0 ) { W_L ( " \" " ) ; W_V ( value ) ; W_L ( " \" " ) ; } break ; case ' ' : case ' ' : if ( strcasecmp ( name , " " ) == 0 && value && * value != 0 ) { W_L ( " \" " ) ; W_V ( value ) ; W_L ( " \" " ) ; } break ; default : break ; } } W_L ( " " ) ; return chtml10 -> out ; }
It is a handler who processes the TEXTARE tag.
It is a handler who processes the TEXTARE tag .