diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-11-25 21:21:55 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-11-25 21:21:55 +0100 |
commit | 6d1c4ae5a9b220cdd4c5bad3fe6fb49bfc42d31f (patch) | |
tree | 5284418469a5616a18105071f36b685781de49ac /Libraries/LibHTML/Makefile | |
parent | a91c17c0ebd2788a95b9f0e9a4c618a025added3 (diff) | |
download | serenity-6d1c4ae5a9b220cdd4c5bad3fe6fb49bfc42d31f.zip |
LibHTML: Implement basic <form> and <input> 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 <form method="GET">, 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! :^)
Diffstat (limited to 'Libraries/LibHTML/Makefile')
-rw-r--r-- | Libraries/LibHTML/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
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 \ |