mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +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:
parent
756829555a
commit
ca23db10ef
Notes:
sideshowbarker
2024-07-19 05:56:19 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/ca23db10ef2
1 changed files with 8 additions and 2 deletions
|
@ -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"))) {
|
||||
|
|
Loading…
Add table
Reference in a new issue