Browse Source

Fix error with tags like <? xml ?>

tags/0.3.7
Vsevolod Stakhov 13 years ago
parent
commit
9eed219c78
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/html.c

+ 3
- 1
src/html.c View File

@@ -864,7 +864,9 @@ add_html_node (struct worker_task *task, memory_pool_t * pool, struct mime_text_
*cur_level = new;
}
/* Skip some tags */
if (data->tag->id == Tag_STYLE || data->tag->id == Tag_SCRIPT || data->tag->id == Tag_OBJECT) {
if (data->tag && (data->tag->id == Tag_STYLE ||
data->tag->id == Tag_SCRIPT ||
data->tag->id == Tag_OBJECT)) {
return FALSE;
}
}

Loading…
Cancel
Save