mirror of
https://github.com/rkd77/elinks.git
synced 2025-06-30 22:19:29 -04:00
[dd] Make DD and DT consistent with links. Refs #368
This commit is contained in:
parent
fa926c2ccb
commit
9723da814f
@ -471,12 +471,12 @@ static struct element_info elements[] = {
|
|||||||
{"CAPTION", html_center, NULL, 1, ET_NESTABLE },
|
{"CAPTION", html_center, NULL, 1, ET_NESTABLE },
|
||||||
{"CENTER", html_center, NULL, 1, ET_NESTABLE },
|
{"CENTER", html_center, NULL, 1, ET_NESTABLE },
|
||||||
{"CODE", html_fixed, NULL, 0, ET_NESTABLE },
|
{"CODE", html_fixed, NULL, 0, ET_NESTABLE },
|
||||||
{"DD", html_dd, NULL, 1, ET_NON_PAIRABLE},
|
{"DD", html_dd, NULL, 1, ET_NON_NESTABLE},
|
||||||
{"DFN", html_bold, NULL, 0, ET_NESTABLE },
|
{"DFN", html_bold, NULL, 0, ET_NESTABLE },
|
||||||
{"DIR", html_ul, NULL, 2, ET_NESTABLE },
|
{"DIR", html_ul, NULL, 2, ET_NESTABLE },
|
||||||
{"DIV", html_linebrk, NULL, 1, ET_NESTABLE },
|
{"DIV", html_linebrk, NULL, 1, ET_NESTABLE },
|
||||||
{"DL", html_dl, NULL, 1, ET_NESTABLE },
|
{"DL", html_dl, NULL, 1, ET_NESTABLE },
|
||||||
{"DT", html_dt, NULL, 1, ET_NON_PAIRABLE},
|
{"DT", html_dt, NULL, 1, ET_NON_NESTABLE},
|
||||||
{"EM", html_italic, NULL, 0, ET_NESTABLE },
|
{"EM", html_italic, NULL, 0, ET_NESTABLE },
|
||||||
{"EMBED", html_embed, NULL, 0, ET_NON_PAIRABLE},
|
{"EMBED", html_embed, NULL, 0, ET_NON_PAIRABLE},
|
||||||
{"FIGCAPTION", html_linebrk, NULL, 1, ET_NESTABLE },
|
{"FIGCAPTION", html_linebrk, NULL, 1, ET_NESTABLE },
|
||||||
|
20
test/dd.html
Normal file
20
test/dd.html
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html><head>
|
||||||
|
<title>dl/dt/dd sample</title>
|
||||||
|
</head><body>
|
||||||
|
|
||||||
|
<p>Cryptids of Cornwall:</p>
|
||||||
|
<hr>
|
||||||
|
<a href="/">AAA</a>
|
||||||
|
<dl>
|
||||||
|
<dt>Beast of Bodmin</dt>
|
||||||
|
<dd>A large feline inhabiting Bodmin Moor.</dd>
|
||||||
|
|
||||||
|
<dt>Morgawr</dt>
|
||||||
|
<dd>A sea serpent.</dd>
|
||||||
|
|
||||||
|
<dt>Owlman</dt>
|
||||||
|
<dd>A giant owl-like creature.</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
</body></html>
|
Loading…
x
Reference in New Issue
Block a user