mothra: handle span and div, helps to resynchronization on html errors
This commit is contained in:
parent
7a704e4ab6
commit
2d09d805f3
|
@ -176,6 +176,7 @@ enum{
|
|||
Tag_samp,
|
||||
Tag_script,
|
||||
Tag_select,
|
||||
Tag_span,
|
||||
Tag_strong,
|
||||
Tag_style,
|
||||
Tag_source,
|
||||
|
|
|
@ -25,7 +25,7 @@ Tag tag[]={
|
|||
[Tag_dd] "dd", NOEND, /* OPTEND */
|
||||
[Tag_dfn] "dfn", END,
|
||||
[Tag_dir] "dir", END,
|
||||
[Tag_div] "div", NOEND, /* OPTEND */
|
||||
[Tag_div] "div", END, /* OPTEND */
|
||||
[Tag_dl] "dl", END,
|
||||
[Tag_dt] "dt", NOEND, /* OPTEND */
|
||||
[Tag_em] "em", END,
|
||||
|
@ -65,6 +65,7 @@ Tag tag[]={
|
|||
[Tag_samp] "samp", END,
|
||||
[Tag_script] "script", END,
|
||||
[Tag_select] "select", END,
|
||||
[Tag_span] "span", END,
|
||||
[Tag_strong] "strong", END,
|
||||
[Tag_style] "style", END,
|
||||
[Tag_source] "source", NOEND,
|
||||
|
|
|
@ -813,6 +813,7 @@ void plrdhtml(char *name, int fd, Www *dst){
|
|||
g.spacc=0;
|
||||
g.linebrk=1;
|
||||
break;
|
||||
case Tag_span:
|
||||
case Tag_center:
|
||||
/* more to come */
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue