Recognize link targets in dfn elements

This fixes https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1018696
This commit is contained in:
Rene Kita
2022-12-28 12:41:20 +01:00
parent 900b3d7b41
commit 047b448a3a
3 changed files with 7 additions and 4 deletions

5
html.c
View File

@@ -6,6 +6,7 @@
/* Define HTML Tag Infomation Table */
#define ATTR_CORE ATTR_ID
unsigned char ALST_ID[] = { ATTR_CORE };
unsigned char ALST_A[] = {
ATTR_NAME, ATTR_HREF, ATTR_REL, ATTR_CHARSET, ATTR_TARGET, ATTR_HSEQ,
ATTR_REFERER,
@@ -237,9 +238,9 @@ TagInfo TagMAP[MAX_HTMLTAG] = {
{"/section", NULL, 0, TFLG_END}, /* 146 HTML_N_SECTION */
{"/dt", NULL, 0, TFLG_END}, /* 147 HTML_N_DT */
{"/dd", NULL, 0, TFLG_END}, /* 148 HTML_N_DD */
{"dfn", ALST_ID, ARR_SZ(ALST_ID), 0}, /* 149 HTML_DFN */
{"/dfn", NULL, 0, TFLG_END}, /* 150 HTML_N_DFN */
{NULL, NULL, 0, 0}, /* 149 Undefined */
{NULL, NULL, 0, 0}, /* 150 Undefined */
{NULL, NULL, 0, 0}, /* 151 Undefined */
{NULL, NULL, 0, 0}, /* 152 Undefined */
{NULL, NULL, 0, 0}, /* 153 Undefined */