Ignore:
Timestamp:
Feb 1, 2011, 6:07:07 PM (10 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Don't crash on unknow/weird/hippy tags
File:
1 edited

Legend:

Unmodified
Added
Removed
  • gaycko/trunk/src/dom/dom.c

    r4727 r4730  
    3333        e->attributes      = NULL;
    3434
     35        if(!node->name) {
     36                e->name = strdup("UNKNOW");
     37                e->type = ELEM_UNKNOW;
     38                return e;       
     39        }
     40       
    3541        e->name = (char*)strdup((const char*)node->name);
    36 
    3742        if(!strncmp(e->name, "html", 4)) {
    3843                e->type = ELEM_HTML;
Note: See TracChangeset for help on using the changeset viewer.