Skip to content

Commit b0997b2

Browse files
Allow the <a> element to contain block content.
Thanks Steven Le. http://lists.w3.org/Archives/Public/html-tidy/2012JanMar/0017.html
1 parent 0dbac25 commit b0997b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tags.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ static const Dict tag_defs[] =
156156
{ TidyTag_UNKNOWN, "unknown!", VERS_UNKNOWN, NULL, (0), NULL, NULL },
157157

158158
/* W3C defined elements */
159-
{ TidyTag_A, "a", VERS_ELEM_A, &TY_(W3CAttrsFor_A)[0], (CM_INLINE), TY_(ParseInline), NULL },
159+
{ TidyTag_A, "a", VERS_ELEM_A, &TY_(W3CAttrsFor_A)[0], (CM_INLINE|CM_BLOCK|CM_MIXED), TY_(ParseBlock), NULL },
160160
{ TidyTag_ABBR, "abbr", VERS_ELEM_ABBR, &TY_(W3CAttrsFor_ABBR)[0], (CM_INLINE), TY_(ParseInline), NULL },
161161
{ TidyTag_ACRONYM, "acronym", VERS_ELEM_ACRONYM, &TY_(W3CAttrsFor_ACRONYM)[0], (CM_INLINE), TY_(ParseInline), NULL },
162162
{ TidyTag_ADDRESS, "address", VERS_ELEM_ADDRESS, &TY_(W3CAttrsFor_ADDRESS)[0], (CM_BLOCK), TY_(ParseInline), NULL },

0 commit comments

Comments
 (0)