LibWeb: Support autocomplete attribute on form elements

Implement proper support for the `autocomplete` attribute in `input`,
`select` and `textarea` elements.
This commit is contained in:
devgianlu 2025-02-09 15:56:54 +01:00 committed by Tim Ledbetter
commit b8f234719d
Notes: github-actions[bot] 2025-02-26 07:02:12 +00:00
11 changed files with 644 additions and 9 deletions

View file

@ -12,6 +12,7 @@
#include <LibWeb/DOM/DocumentLoadEventDelayer.h>
#include <LibWeb/DOM/Text.h>
#include <LibWeb/FileAPI/FileList.h>
#include <LibWeb/HTML/AutocompleteElement.h>
#include <LibWeb/HTML/ColorPickerUpdateState.h>
#include <LibWeb/HTML/FileFilter.h>
#include <LibWeb/HTML/FormAssociatedElement.h>
@ -52,10 +53,12 @@ class HTMLInputElement final
: public HTMLElement
, public FormAssociatedTextControlElement
, public Layout::ImageProvider
, public PopoverInvokerElement {
, public PopoverInvokerElement
, public AutocompleteElement {
WEB_PLATFORM_OBJECT(HTMLInputElement, HTMLElement);
GC_DECLARE_ALLOCATOR(HTMLInputElement);
FORM_ASSOCIATED_ELEMENT(HTMLElement, HTMLInputElement)
FORM_ASSOCIATED_ELEMENT(HTMLElement, HTMLInputElement);
AUTOCOMPLETE_ELEMENT(HTMLElement, HTMLInputElement);
public:
virtual ~HTMLInputElement() override;