mothra: handle span and div, helps to resynchronization on html errors

This commit is contained in:
cinap_lenrek 2012-07-08 01:06:31 +02:00
parent 7a704e4ab6
commit 2d09d805f3
3 changed files with 4 additions and 1 deletions

View file

@ -176,6 +176,7 @@ enum{
Tag_samp,
Tag_script,
Tag_select,
Tag_span,
Tag_strong,
Tag_style,
Tag_source,

View file

@ -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,

View file

@ -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;