mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 21:00:06 +00:00
LibWeb: Don't crash when encountering <svg> or <math> elements
Just treat them like unknown elements for now. :^)
This commit is contained in:
@@ -1210,11 +1210,17 @@ void HTMLDocumentParser::handle_in_body(HTMLToken& token)
|
||||
}
|
||||
|
||||
if (token.is_start_tag() && token.tag_name() == "math") {
|
||||
TODO();
|
||||
dbg() << "<math> element encountered.";
|
||||
reconstruct_the_active_formatting_elements();
|
||||
insert_html_element(token);
|
||||
return;
|
||||
}
|
||||
|
||||
if (token.is_start_tag() && token.tag_name() == "svg") {
|
||||
TODO();
|
||||
dbg() << "<svg> element encountered.";
|
||||
reconstruct_the_active_formatting_elements();
|
||||
insert_html_element(token);
|
||||
return;
|
||||
}
|
||||
|
||||
if ((token.is_start_tag() && token.tag_name().is_one_of("caption", "col", "colgroup", "frame", "head", "tbody", "td", "tfoot", "th", "thead", "tr"))) {
|
||||
|
||||
Reference in New Issue
Block a user