LibWeb: Fix typo in spec comment for non-list single line containers

This commit is contained in:
Jelle Raaijmakers 2025-01-09 23:40:58 +01:00 committed by Andreas Kling
parent acef5a34de
commit e5b107b6b6
Notes: github-actions[bot] 2025-01-10 22:39:43 +00:00

View file

@ -1720,7 +1720,7 @@ bool is_name_of_an_element_with_inline_contents(FlyString const& local_name)
// https://w3c.github.io/editing/docs/execCommand/#non-list-single-line-container
bool is_non_list_single_line_container(GC::Ref<DOM::Node> node)
{
// A non-list single-line container is an HTML element with local name "address", "divis_", "h1", "h2", "h3", "h4",
// A non-list single-line container is an HTML element with local name "address", "div", "h1", "h2", "h3", "h4",
// "h5", "h6", "listing", "p", "pre", or "xmp".
if (!is<HTML::HTMLElement>(*node))
return false;