mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
LibWeb/HTML: Fix ruby parse error check for rp/rt
This commit is contained in:
Notes:
github-actions[bot]
2026-04-22 14:31:51 +00:00
Author: https://github.com/shlyakpavel Commit: https://github.com/LadybirdBrowser/ladybird/commit/0e98fdccd56 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8979 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -3144,7 +3144,7 @@ void HTMLParser::handle_in_body(HTMLToken& token)
|
||||
// If the stack of open elements has a ruby element in scope, then generate implied end tags, except for rtc elements. If the current node is not now a rtc element or a ruby element, this is a parse error.
|
||||
if (m_stack_of_open_elements.has_in_scope(HTML::TagNames::ruby))
|
||||
generate_implied_end_tags(HTML::TagNames::rtc);
|
||||
if (current_node()->local_name() != HTML::TagNames::rtc || current_node()->local_name() != HTML::TagNames::ruby)
|
||||
if (current_node()->local_name() != HTML::TagNames::rtc && current_node()->local_name() != HTML::TagNames::ruby)
|
||||
log_parse_error();
|
||||
|
||||
// Insert an HTML element for the token.
|
||||
|
||||
Reference in New Issue
Block a user