mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-19 02:32:44 +03:00
Handle known HTML elements without specialisations.
This commit is contained in:
parent
94b913e5b3
commit
9fb755b754
@ -342,10 +342,16 @@ static void dukky_html_element_class_from_tag_type(dom_html_element_type type,
|
||||
break;
|
||||
case DOM_HTML_ELEMENT_TYPE__COUNT:
|
||||
assert(type != DOM_HTML_ELEMENT_TYPE__COUNT);
|
||||
default:
|
||||
case DOM_HTML_ELEMENT_TYPE__UNKNOWN:
|
||||
SET_HTML_CLASS(UNKNOWN)
|
||||
break;
|
||||
default:
|
||||
/* Known HTML element without a specialisation */
|
||||
*html_class = PROTO_NAME(HTMLELEMENT);
|
||||
*html_class_len =
|
||||
SLEN(PROTO_NAME(HTML)) +
|
||||
SLEN("ELEMENT");
|
||||
break;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user