Andreas Kling
34344120f2
AK: Make "foo"_string infallible
...
Stop worrying about tiny OOMs.
Work towards #20405 .
2023-08-07 16:03:27 +02:00
Luke Wilde
c9c1ddd0bb
LibWeb: Fix up constructing the form entry list
...
In particular:
- Don't include none submitter buttons.
- Use type_state() instead type() to avoid direct string comparisons
- Support the hidden _charset_ input
- Get form associated element's value directly instead of via the value
attribute
- Split line break normalization into a separate function so that it
can also be used by form submission.
2023-06-19 06:12:26 +02:00
Andreas Kling
e43027091d
LibWeb: Don't include HTML/Window.h from DOM/Element.h
...
This required moving HTML::ScrollOptions to its own header file.
2023-05-08 09:29:44 +02:00
Linus Groh
b3cc320718
LibWeb/HTML: Use correct spec link for multipart/form-data encoding
2023-04-09 17:59:36 +02:00
Kenneth Myhra
4d87072201
LibWeb: Port {HTML,UIEvents,XHR}::EventNames to new String
2023-04-06 23:49:08 +02:00
Kenneth Myhra
84722ae2ef
LibWeb: Implement multipart/form-data encoding algorithm
2023-04-05 09:43:52 +01:00
Kenneth Myhra
bb7ae423d5
LibWeb: Port FormDataEvent to new String
2023-03-05 18:25:59 +00:00
Kenneth Myhra
9a5a8d617d
LibWeb: Port IDL implementations Blob and File to new String
2023-02-26 00:27:22 +01:00
Linus Groh
09d40bfbb2
Everywhere: Use _{short_,}string to create Strings from literals
2023-02-25 20:51:49 +01:00
Luke Wilde
3275d659bf
LibWeb: Convert FormData to String and Vector storage
...
This makes use of the new [UseNewAKString] extended attribute. Using
Vector storage will make it easier to make this interface into an IDL
iterable. It seems the reason it didn't use Vector originally was due
to awkward DeprecatedString -> String conversions.
2023-02-18 01:23:36 +01:00
Kenneth Myhra
562594c416
LibWeb: Do not assume field element is always a HTMLInputElement
...
Cast to a HTMLElement instead and retrieve the value attribute from
there instead.
2023-02-13 14:34:37 +00:00
Kenneth Myhra
7d23af49c2
LibWeb: Avoid dereferencing null pointer
...
Null check was missing and we would crash when dereferencing the
pointer to access the type() member.
2023-02-13 14:34:37 +00:00
Kenneth Myhra
4d27b9e553
LibWeb: Use 'auto& vm =' once at beginning to reduce noise
2023-02-12 11:53:52 +00:00
Kenneth Myhra
fc886b4556
LibWeb: Implement algorithm 'construct the entry list given a form'
2023-02-12 00:18:09 +00:00
Kenneth Myhra
d5b5b94a35
LibWeb: Introduce the FormData interface from the XHR specification
2023-02-12 00:18:09 +00:00