mothra: <del>, <ins>, <wbr>

This commit is contained in:
cinap_lenrek 2015-03-15 18:01:06 +01:00
parent 6411efcde8
commit 9b7c978793
3 changed files with 9 additions and 0 deletions

View file

@ -146,6 +146,7 @@ enum{
Tag_cite,
Tag_code,
Tag_dd,
Tag_del,
Tag_div,
Tag_dfn,
Tag_dir,
@ -169,6 +170,7 @@ enum{
Tag_iframe,
Tag_img,
Tag_input,
Tag_ins,
Tag_isindex,
Tag_kbd,
Tag_key,
@ -203,6 +205,7 @@ enum{
Tag_ul,
Tag_var,
Tag_video,
Tag_wbr,
Tag_xmp,
Tag_end, /* also used to indicate unrecognized start tag */

View file

@ -23,6 +23,7 @@ Tag tag[]={
[Tag_code] "code", END,
[Tag_comment] "!--", NOEND,
[Tag_dd] "dd", NOEND, /* OPTEND */
[Tag_del] "del", END,
[Tag_dfn] "dfn", END,
[Tag_dir] "dir", END,
[Tag_div] "div", END, /* OPTEND */
@ -47,6 +48,7 @@ Tag tag[]={
[Tag_iframe] "iframe", NOEND,
[Tag_img] "img", NOEND,
[Tag_input] "input", NOEND,
[Tag_ins] "ins", END,
[Tag_isindex] "isindex", NOEND,
[Tag_kbd] "kbd", END,
[Tag_key] "key", END,
@ -81,5 +83,6 @@ Tag tag[]={
[Tag_ul] "ul", END,
[Tag_var] "var", END,
[Tag_video] "video", NOEND,
[Tag_wbr] "wbr", NOEND,
[Tag_xmp] "xmp", END,
};

View file

@ -880,6 +880,7 @@ void plrdhtml(char *name, int fd, Www *dst){
break;
case Tag_s:
case Tag_strike:
case Tag_del:
g.state->strike=1;
break;
case Tag_blockquot:
@ -899,6 +900,7 @@ void plrdhtml(char *name, int fd, Www *dst){
break;
case Tag_div:
case Tag_br:
case Tag_wbr:
g.spacc=0;
g.linebrk=1;
break;
@ -944,6 +946,7 @@ void plrdhtml(char *name, int fd, Www *dst){
break;
case Tag_u:
htmlerror(g.name, g.lineno, "<u> deprecated");
case Tag_ins:
case Tag_em:
case Tag_i:
case Tag_var: