attr = qs_get_next_attr(doc,attr)) {
char* nm = qs_get_attr_name(doc,attr);
char* val = qs_get_attr_value(doc,attr);
-
if (STRCASEEQ('s','S',"size", nm)) {
/*----------------------------------------------------------------------*/
/* CHTML 1.0 version 2.0 */
/**
- * It is a handter who processes the DT tag.
+ * It is a handler who processes the DT tag.
*
* @param pdoc [i/o] The pointer to the CHTML structure at the output
* destination is specified.
/**
- * It is a handter who processes the DT tag.
+ * It is a handler who processes the DT tag.
*
* @param pdoc [i/o] The pointer to the CHTML structure at the output
* destination is specified.
/**
- * It is a handder who processes the DD tag.
+ * It is a handler who processes the DD tag.
*
* @param pdoc [i/o] The pointer to the CHTML structure at the output
* destination is specified.
/**
- * It is a handder who processes the DD tag.
+ * It is a handler who processes the DD tag.
*
* @param pdoc [i/o] The pointer to the CHTML structure at the output
* destination is specified.
/**
- * It is a hanmarqueeer who processes the MARQUEE tag.
+ * It is a handler who processes the MARQUEE tag.
*
* @param pdoc [i/o] The pointer to the CHTML structure at the output
* destination is specified.
/**
- * It is a hanmarqueeer who processes the MARQUEE tag.
+ * It is a handler who processes the MARQUEE tag.
*
* @param pdoc [i/o] The pointer to the CHTML structure at the output
* destination is specified.
static char *s_xhtml_1_0_end_plaintext_tag (void *pdoc, Node *node);
static char *s_xhtml_1_0_start_blink_tag (void *pdoc, Node *node);
static char *s_xhtml_1_0_end_blink_tag (void *pdoc, Node *node);
+static char *s_xhtml_1_0_start_marquee_tag (void *pdoc, Node *node);
+static char *s_xhtml_1_0_end_marquee_tag (void *pdoc, Node *node);
static void s_init_xhtml(xhtml_t *xhtml, Doc *doc, request_rec *r, device_table *spec);
static int s_xhtml_search_emoji(xhtml_t *xhtml, char *txt, char **rslt);
},
/* tagMARQUEE */
{
- NULL,
- NULL,
+ s_xhtml_1_0_start_marquee_tag,
+ s_xhtml_1_0_end_marquee_tag,
},
};
W_L("</blink>");
return xhtml->out;
}
+
+
+/**
+ * It is a handler who processes the MARQUEE tag.
+ *
+ * @param pdoc [i/o] The pointer to the XHTML structure at the output
+ * destination is specified.
+ * @param node [i] The MARQUEE tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_xhtml_1_0_start_marquee_tag(void *pdoc, Node *node)
+{
+ xhtml_t *xhtml = GET_XHTML(pdoc);
+ Doc *doc = xhtml->doc;
+ Attr *attr;
+ W_L("<marquee");
+ /*--------------------------------------------------------------------------*/
+ /* Get Attributes */
+ /*--------------------------------------------------------------------------*/
+ 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);
+ if (STRCASEEQ('d','D',"direction", name)) {
+ if (value && (STRCASEEQ('l','L',"left",value) || STRCASEEQ('r','R',"right",value))) {
+ W_L(" direction=\"");
+ W_V(value);
+ W_L("\"");
+ }
+ }
+ else if (STRCASEEQ('b','B',"behavior",name)) {
+ if (value && (STRCASEEQ('s','S',"scroll",value) || STRCASEEQ('s','S',"slide",value) || STRCASEEQ('a','A',"alternate",value))) {
+ W_L(" behavior=\"");
+ W_V(value);
+ W_L("\"");
+ }
+ }
+ else if (STRCASEEQ('l','L',"loop",name)) {
+ if (value && *value) {
+ W_L(" loop=\"");
+ W_V(value);
+ W_L("\"");
+ }
+ }
+ }
+ W_L(">");
+ return xhtml->out;
+}
+
+
+/**
+ * It is a handler who processes the MARQUEE tag.
+ *
+ * @param pdoc [i/o] The pointer to the XHTML structure at the output
+ * destination is specified.
+ * @param node [i] The MARQUEE tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_xhtml_1_0_end_marquee_tag(void *pdoc, Node *UNUSED(child))
+{
+ xhtml_t *xhtml = GET_XHTML(pdoc);
+ Doc *doc = xhtml->doc;
+ W_L("</marquee>");
+ return xhtml->out;
+}
/*
* vim:ts=2 et
*/