summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hc.c8
-rw-r--r--wl2
-rw-r--r--wl.h1
3 files changed, 4 insertions, 7 deletions
diff --git a/hc.c b/hc.c
index 2642bfa..86b9594 100644
--- a/hc.c
+++ b/hc.c
@@ -121,7 +121,7 @@ static int allowed_attr(token_t el, token_t at)
return 0;
}
-static void parse_attr(token_t el)
+static void parse_attrs(token_t el)
{
for (;;) {
token_t ws0 = optmatch(tok_wsp);
@@ -136,10 +136,6 @@ static void parse_attr(token_t el)
deltok(printtok(end));
deltok(printtok(close));
break;
- }
-
- if (null(ws0)) {
- bail();
} else {
token_t at = gettok();
token_t ws1 = optmatch(tok_wsp);
@@ -207,7 +203,7 @@ static void parse_element(token_t in)
printtok(in);
printtok(end);
printtok(name);
- parse_attr(name);
+ parse_attrs(name);
} else {
deltok(lookfor('>'));
}
diff --git a/wl b/wl
index 6051b6d..6c24ad5 100644
--- a/wl
+++ b/wl
@@ -74,7 +74,7 @@ strong: class dir id lang style title
style: dir lang media style title type title
sub: class dir id lang style title
sup: class dir id lang style title
-table: align bgcolor cellpadding cellspacing class dir frame id lang rules style summary title width
+table: align border bgcolor cellpadding cellspacing class dir frame id lang rules style summary title width
tbody: align border char charoff class dir id lang style title valign
td: abbr align axis bgcolor char charoff class colspan dir headers height id lang rowspan scope style title valign width
!textarea:
diff --git a/wl.h b/wl.h
index 89feb95..3620a62 100644
--- a/wl.h
+++ b/wl.h
@@ -552,6 +552,7 @@ static int allowed_at_sup_spec[] = {
static int allowed_at_table_spec[] = {
tok_at_align,
+ tok_at_border,
tok_at_bgcolor,
tok_at_cellpadding,
tok_at_cellspacing,