* @return The conversion result is returned.
*/
static char *
-s_chtml10_start_select_tag(void *pdoc, Node *child)
+s_chtml10_start_select_tag(void *pdoc, Node *node)
{
chtml10_t *chtml10;
Doc *doc;
request_rec *r;
Attr *attr;
+ char *attr_style = NULL;
char *size;
char *name;
name = NULL;
W_L("<select");
- for (attr = qs_get_attr(doc,child);
+ for (attr = qs_get_attr(doc,node);
attr;
attr = qs_get_next_attr(doc,attr)) {
char *nm = qs_get_attr_name (doc,attr);
/*--------------------------------------------------------------------*/
size = apr_pstrdup(doc->buf.pool, val);
}
+ else if (strcasecmp(nm, "style") == 0) {
+ /*--------------------------------------------------------------------*/
+ /* CHTML 1.0 version 2.0 */
+ /*--------------------------------------------------------------------*/
+ attr_style = apr_pstrdup(doc->buf.pool, val);
+ }
break;
case 'n':
}
W_L(">");
+ if (IS_CSS_ON(chtml10->entryp)) {
+ s_chtml10_push_and_get_now_style(pdoc, node, attr_style);
+ }
return chtml10->out;
}
r = doc->r;
W_L("</select>");
+ if (IS_CSS_ON(chtml10->entryp)) {
+ chxj_css_pop_prop_list(chtml10->css_prop_stack);
+ }
return chtml10->out;
}