From 6d1c4ae5a9b220cdd4c5bad3fe6fb49bfc42d31f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 25 Nov 2019 21:21:55 +0100 Subject: LibHTML: Implement basic
and element support This patch adds "submit" inputs and default (text box) inputs, as well as form elements that can be submitted. Layout of input elements is implemented via a new LayoutWidget class that allows you to put an arbitrary GWidget in the layout tree. At the moment, the DOM node sets the initial size of the LayoutWidget, and then the positioning is done by the normal layout algorithm. We also now support submitting a , which does a full replacing load with a URL based on the form's action + a query string built from the name/value of input elements within the submitted form. This is pretty neat! :^) --- Libraries/LibHTML/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Libraries/LibHTML/Makefile') diff --git a/Libraries/LibHTML/Makefile b/Libraries/LibHTML/Makefile index cb38b174e8..4090c7f9ac 100644 --- a/Libraries/LibHTML/Makefile +++ b/Libraries/LibHTML/Makefile @@ -27,11 +27,13 @@ LIBHTML_OBJS = \ DOM/HTMLBodyElement.o \ DOM/HTMLElement.o \ DOM/HTMLFontElement.o \ + DOM/HTMLFormElement.o \ DOM/HTMLHRElement.o \ DOM/HTMLHeadElement.o \ DOM/HTMLHeadingElement.o \ DOM/HTMLHtmlElement.o \ DOM/HTMLImageElement.o \ + DOM/HTMLInputElement.o \ DOM/HTMLLinkElement.o \ DOM/HTMLStyleElement.o \ DOM/HTMLTitleElement.o \ @@ -59,6 +61,7 @@ LIBHTML_OBJS = \ Layout/LayoutTableRow.o \ Layout/LayoutText.o \ Layout/LayoutTreeBuilder.o \ + Layout/LayoutWidget.o \ Layout/LineBox.o \ Layout/LineBoxFragment.o \ Parser/CSSParser.o \ -- cgit v1.2.3