mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-16 07:11:52 +00:00
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:
parent
2d7080ecb3
commit
b8f234719d
Notes:
github-actions[bot]
2025-02-26 07:02:12 +00:00
Author: https://github.com/devgianlu
Commit: b8f234719d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3517
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/tcl3 ✅
11 changed files with 644 additions and 9 deletions
|
@ -9,6 +9,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/HTML/AutocompleteElement.h>
|
||||
#include <LibWeb/HTML/FormAssociatedElement.h>
|
||||
#include <LibWeb/HTML/HTMLElement.h>
|
||||
#include <LibWeb/HTML/HTMLOptionsCollection.h>
|
||||
|
@ -19,10 +20,12 @@ namespace Web::HTML {
|
|||
|
||||
class HTMLSelectElement final
|
||||
: public HTMLElement
|
||||
, public FormAssociatedElement {
|
||||
, public FormAssociatedElement
|
||||
, public AutocompleteElement {
|
||||
WEB_PLATFORM_OBJECT(HTMLSelectElement, HTMLElement);
|
||||
GC_DECLARE_ALLOCATOR(HTMLSelectElement);
|
||||
FORM_ASSOCIATED_ELEMENT(HTMLElement, HTMLSelectElement)
|
||||
FORM_ASSOCIATED_ELEMENT(HTMLElement, HTMLSelectElement);
|
||||
AUTOCOMPLETE_ELEMENT(HTMLElement, HTMLSelectElement);
|
||||
|
||||
public:
|
||||
virtual ~HTMLSelectElement() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue