diff --git a/Libraries/LibWeb/DOM/Node.cpp b/Libraries/LibWeb/DOM/Node.cpp index bc267ef7298..72be159181f 100644 --- a/Libraries/LibWeb/DOM/Node.cpp +++ b/Libraries/LibWeb/DOM/Node.cpp @@ -36,11 +36,14 @@ #include #include #include +#include #include #include +#include #include #include #include +#include #include #include #include @@ -2280,6 +2283,15 @@ ErrorOr Node::name_or_description(NameOrDescription target, Document con for (u32 i = 0; i < labels->length(); i++) { auto nodes = labels->item(i)->children_as_vector(); for (auto const& node : nodes) { + // AD-HOC: https://wpt.fyi/results/accname/name/comp_host_language_label.html has “encapsulation” + // tests, from which can be induced a requirement that when computing the accessible name for a + //