summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2009-10-24 01:08:27 +0000
committercorvid <corvid@lavabit.com>2009-10-24 01:08:27 +0000
commitfc1c91f5aa3d8d2ca35f6f203de5c853bed27a0f (patch)
tree9b873c3aad3f149020b61e4990269b8101688b18
parent4f4fb36ddea6793d2ce39e7cb53e2dfe2e2bcd65 (diff)
UL match type attr exactly
-rw-r--r--src/html.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/html.cc b/src/html.cc
index 593a77bb..82592f49 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -2527,11 +2527,11 @@ static void Html_tag_open_ul(DilloHtml *html, const char *tag, int tagsize)
CssPropertyList props;
/* list_style_type explicitly defined */
- if (dStrncasecmp(attrbuf, "disc", 4) == 0)
+ if (dStrcasecmp(attrbuf, "disc") == 0)
list_style_type = LIST_STYLE_TYPE_DISC;
- else if (dStrncasecmp(attrbuf, "circle", 6) == 0)
+ else if (dStrcasecmp(attrbuf, "circle") == 0)
list_style_type = LIST_STYLE_TYPE_CIRCLE;
- else if (dStrncasecmp(attrbuf, "square", 6) == 0)
+ else if (dStrcasecmp(attrbuf, "square") == 0)
list_style_type = LIST_STYLE_TYPE_SQUARE;
else
/* invalid value */