LibWeb: Look for labeled control in DOM tree instead of layout tree

...because "change" event should be dispatched on control even if it
has "display: none" style.

This change fixes selection in labels dropdown on GitHub's "new issue"
page.
This commit is contained in:
Aliaksandr Kalenik 2024-03-23 12:03:21 +01:00 committed by Andreas Kling
commit f932d5d825
Notes: sideshowbarker 2024-07-17 07:11:12 +09:00
8 changed files with 74 additions and 49 deletions

View file

@ -21,6 +21,8 @@ public:
Optional<String> for_() const { return attribute(HTML::AttributeNames::for_); }
JS::GCPtr<HTMLElement> control() const;
private:
HTMLLabelElement(DOM::Document&, DOM::QualifiedName);